Locks global GUI mutex. Reentrant.
Attempts to lock global GUI mutex. Returns true on success.
Unlocks single level of global GUI mutex.
Completely unlocks GUI mutex - if it was locked multiple times in reentrant fashion, unlocks all levels as to leave mutex unlocked. Returns the number of levels unlocked.
void EnterGuiMutex(int n)
Locks GUI mutex n times.
Current thread has locked GUI mutex.
Returns reentrancy level of GUI mutex.
Constructor locks GUI mutex, destructor unlocks it.
Constructor completely unlocks GUI mutex using LeaveGuiMutexAll and stores the locking leve, destructor locks GUI mutex again to the same level.