JUCE
Public Member Functions | List of all members
juce::ScopedXLock Class Reference

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

Public Member Functions

 ScopedXLock (XDisplay)
 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()

juce::ScopedXLock::ScopedXLock ( XDisplay  )

Creating a ScopedXLock object locks the X display.

This uses XLockDisplay() to grab the display that JUCE is using.

◆ ~ScopedXLock()

juce::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: