A handy class that uses XLockDisplay and XUnlockDisplay to lock the X server using RAII (Only available in Linux!). More...
#include <juce_ScopedXLock.h>
Public Member Functions | |
ScopedXLock () | |
Creating a ScopedXLock object locks the X display. More... | |
~ScopedXLock () | |
Deleting a ScopedXLock object unlocks the X display. More... | |
A handy class that uses XLockDisplay and XUnlockDisplay to lock the X server using RAII (Only available in Linux!).
ScopedXLock::ScopedXLock | ( | ) |
Creating a ScopedXLock object locks the X display.
This uses XLockDisplay() to grab the display that Juce is using.
ScopedXLock::~ScopedXLock | ( | ) |
Deleting a ScopedXLock object unlocks the X display.
This calls XUnlockDisplay() to release the lock.