Remove asserts, RW lock can go below zero in cases of aeAcquireLock
This commit is contained in:
parent
a827158d27
commit
faefec28a7
@ -65,7 +65,6 @@ public:
|
|||||||
void releaseRead() {
|
void releaseRead() {
|
||||||
std::unique_lock<fastlock> rm(m_readLock);
|
std::unique_lock<fastlock> rm(m_readLock);
|
||||||
m_readCount--;
|
m_readCount--;
|
||||||
serverAssert(m_readCount >= 0);
|
|
||||||
m_cv.notify_all();
|
m_cv.notify_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +74,6 @@ public:
|
|||||||
if (exclusive)
|
if (exclusive)
|
||||||
m_writeLock.unlock();
|
m_writeLock.unlock();
|
||||||
m_writeCount--;
|
m_writeCount--;
|
||||||
serverAssert(m_writeCount >= 0);
|
|
||||||
m_cv.notify_all();
|
m_cv.notify_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user