OpenDOF Project
DOF_PCR_DECLSPEC void PCRMutex_Lock ( PCRMutex  mtx)

Wait for a mutex to become available and lock it.

If the current thread already has the mutex locked, this function will not block, but will keep track of the number of times it is locked (the mutex must be unlocked the same number of times in order to be unlocked for another thread to use).

The mutex must be a valid PCRMutex. The mutex must not be destroyed while it is locked. Except for a serious programming error, this function does not return without the mutex locked.

Parameters
mtxMutex to lock. This may not be NULL.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22