Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

GUI Mutex operations

 

void EnterGuiMutex()

Locks global GUI mutex. Reentrant.

 


 

bool TryEnterGuiMutex()

Attempts to lock global GUI mutex. Returns true on success.

 


 

void LeaveGuiMutex()

Unlocks single level of global GUI mutex.

 


 

int LeaveGuiMutexAll()

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.

 


 

bool ThreadHasGuiLock()

Current thread has locked GUI mutex.

 


 

int GetGuiLockLevel()

Returns reentrancy level of GUI mutex.

 

 


 

struct GuiLock

Constructor locks GUI mutex, destructor unlocks it.

 


 

class GuiUnlock

Constructor completely unlocks GUI mutex using LeaveGuiMutexAll and stores the locking leve, destructor locks GUI mutex again to the same level.

 

 

Last edit by cxl on 01/21/2020. Do you want to contribute?. T++