JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::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_linux_X11.h>

Collaboration diagram for juce::ScopedXLock:

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
 

Detailed Description

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

{GUI}

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.

Member Data Documentation

◆ display

XDisplay juce::ScopedXLock::display
private

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