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











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord 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.

 

 

Do you want to contribute?