MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / unlockWrite

Method unlockWrite

Libraries/Threading/Threading.cpp:92–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void SC::RWLock::unlockWrite()
93{
94 mutex.lock();
95 writerActive = false;
96 if (waitingWriters > 0)
97 {
98 writersQ.signal();
99 }
100 else
101 {
102 readersQ.broadcast();
103 }
104 mutex.unlock();
105}
106
107//-------------------------------------------------------------------------------------------------------
108// Barrier

Callers 1

testRWLockMethod · 0.80

Calls 4

lockMethod · 0.45
signalMethod · 0.45
broadcastMethod · 0.45
unlockMethod · 0.45

Tested by 1

testRWLockMethod · 0.64