The OEMutex class provides a portable MUTual EXclusion device, that is useful for protecting shared data structures from concurrent modification.
Acquires (locks) the OEMutex. If the
OEMutex is unlocked, it is locked by this calls
and becomes owned
by the calling thread. If the OEMutex is already
locked, by this or another thread,
suspends the calling thread until the OEMutex