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

Method post

util/Mutex.cpp:326–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324
325
326void Semaphore::post(void)
327{
328 #ifdef _WIN32
329
330 if(!ReleaseSemaphore(sem, 1, NULL)) throw(W32Error("Semaphore::post()"));
331
332 #elif defined(__APPLE__)
333
334 if(sem_post(sem) == -1) throw(UnixError("Semaphore::post()"));
335
336 #else
337
338 if(sem_post(&sem) == -1) throw(UnixError("Semaphore::post()"));
339
340 #endif
341}
342
343
344long Semaphore::getValue(void)

Callers 3

releaseMethod · 0.80
addMethod · 0.80
runMethod · 0.80

Calls 2

W32ErrorClass · 0.85
UnixErrorClass · 0.85

Tested by 1

runMethod · 0.64