Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
void ReadersWriterMutex::readUnlock() {
29
MutexLocker locker(m_mutex);
30
m_readers--;
31
if (m_writeWaiters)
32
m_writeCond.signal();
33
}
34
35
void ReadersWriterMutex::writeLock() {
36
MutexLocker locker(m_mutex);
Callers
1
unlock
Method · 0.80
Calls
1
signal
Method · 0.45
Tested by
no test coverage detected