An IVEThreadMutex is used to synchronize access to a resource shared by multiple threads in the same process. Only one thread can lock (via IVEThreadAcquireMutex) an IVEThreadMutex at a time; other threads will wait. A thread which has locked an IVEThreadMutex unlocks it with IVEThreadReleaseMutex at which point the same or another thread can lock it. IVEThreadMutex locks are not recursive; a thread which holds a lock on a IVEThreadMutex can not it lock it again.
Include ive_standards.h and ive_thread.h to declare IVEThreadMutex. Beware that inclusion of ive_standards.h sets feature-set macros. It is safest to include it before any other header.
IVEThreadInitMutex, IVEThreadDestroyMutex, IVEThreadAcquireMutex, IVEThreadTryAcquireMutex, and IVEThreadReleaseMutex
| categories | alphabetical |
modified May 7, 2002
Eric Branlund (eric@msg.ucsf.edu)