A handy class that uses XLockDisplay and XUnlockDisplay to lock the X server using RAII (Only available in Linux!). More...
#include <juce_linux_X11.h>

Public Member Functions | |
| ScopedXLock (XDisplay) | |
| Creating a ScopedXLock object locks the X display. More... | |
| ~ScopedXLock () | |
| Deleting a ScopedXLock object unlocks the X display. More... | |
Private Attributes | |
| XDisplay | display |
A handy class that uses XLockDisplay and XUnlockDisplay to lock the X server using RAII (Only available in Linux!).
{GUI}
| juce::ScopedXLock::ScopedXLock | ( | XDisplay | ) |
Creating a ScopedXLock object locks the X display.
This uses XLockDisplay() to grab the display that JUCE is using.
| juce::ScopedXLock::~ScopedXLock | ( | ) |
Deleting a ScopedXLock object unlocks the X display.
This calls XUnlockDisplay() to release the lock.
|
private |