MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / unlock

Method unlock

util/Mutex.cpp:193–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191
192
193void CriticalSection::unlock(bool errorCheck)
194{
195 #ifdef _WIN32
196
197 if(!ReleaseMutex(mutex) && errorCheck)
198 throw(W32Error("CriticalSection::unlock()"));
199
200 #else
201
202 int ret;
203 if((ret = pthread_mutex_unlock(&mutex)) != 0 && errorCheck)
204 throw(Error("CriticalSection::unlock()", strerror(ret)));
205
206 #endif
207}
208
209
210Semaphore::Semaphore(long initialCount)

Callers 7

~VGLTransReceiverMethod · 0.45
runMethod · 0.45
~ListenerMethod · 0.45
getFrameMethod · 0.45
~SafeLockMethod · 0.45
~GenericQMethod · 0.45
~SocketMethod · 0.45

Calls 2

W32ErrorClass · 0.85
ErrorClass · 0.50

Tested by

no test coverage detected