¡@

Home 

c++ Programming Glossary: releasesemaphore

ReleaseSemaphore does not release the semaphore

http://stackoverflow.com/questions/2375132/releasesemaphore-does-not-release-the-semaphore

does not release the semaphore In short main 's WaitForSingleObject.. dispatched. The threds perform some silly loop and call ReleaseSemaphore before they go to sleep. Then the main thread uses WaitForSingleObject.. that WaitForSingleObject hangs. This means that a thread's ReleaseSemaphore did not work. Nothing is printf'ed so supposedly nothing went..