OpenDOF Project
DOF_PCR_DECLSPEC void PCRSemaphore_Destroy ( PCRSemaphore  sem)

Destroy a semaphore.

The semaphore must not be currently in use (nothing can be waiting on or signaling the semaphore). The semaphore signal count must also be equal to or greater than the starting count. This means that PCRSemaphore_Signal must be called for each call made to PCRSemaphore_Wiat. It is ok if there are extra calls to PCRSemaphore_Signal.

Parameters
semSemaphore to destroy. May be NULL.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22