release_exclusive


bool release_exclusive(handle semaphore)

This function relinquishes ownership of the semaphore.

Parameters

handle semaphore

The handle of the semaphore to be released.

Return

bool

true The function succeeded.
false The call failed.

Notes

If the calling thread does not own the semaphore, the call fails and an error is flagged.

A thread can call the function wait_for_single_object or wait_for_single_object_extended when it already owns the semaphore. In such cases, this function should be called once for each time ownership was granted.