JUCE  v4.3.1-6-gf5dafc4
JUCE API
ScopedXLock Class Reference

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

Detailed Description

A handy class that uses XLockDisplay and XUnlockDisplay to lock the X server using RAII (Only available in Linux!).

Constructor & Destructor Documentation

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.


The documentation for this class was generated from the following file: