MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / readUnlock

Method readUnlock

source/core/StarThread.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void ReadersWriterMutex::readUnlock() {
29 MutexLocker locker(m_mutex);
30 m_readers--;
31 if (m_writeWaiters)
32 m_writeCond.signal();
33}
34
35void ReadersWriterMutex::writeLock() {
36 MutexLocker locker(m_mutex);

Callers 1

unlockMethod · 0.80

Calls 1

signalMethod · 0.45

Tested by

no test coverage detected