More that I forgot it extract from curlthreading2.

This commit is contained in:
Aleric Inglewood
2012-07-03 02:33:09 +02:00
parent d66acdf240
commit e36042bb76

View File

@@ -382,6 +382,16 @@ public:
mNoHoldersCondition.signal(); // Tell waiting readers, see [5].
mNoHoldersCondition.unlock(); // Release lock on mHoldersCount.
}
#if LL_DEBUG
// Really only intended for debugging purposes:
bool isLocked(void)
{
mNoHoldersCondition.lock();
bool res = mHoldersCount;
mNoHoldersCondition.unlock();
return res;
}
#endif
};
//============================================================================