none
Semaphore question in User mode RRS feed

  • Question

  • What happens when i am releasing a semaphore, without actually calling WaitForSingleObject on the seamphore. The Semaphore was created in one thread and i am simply releasing the semaphore without waiting for it in another thread.

    Tuesday, May 26, 2015 2:37 AM

Answers

  • you are releasing a count on the semaphore which you never acquired? The resulting behavior is undefined

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, May 26, 2015 5:19 AM