XLockDisplay(3X) XLIB FUNCTIONS XLockDisplay(3X)NAMEXLockDisplay - locks a display
SYNTAX
void XLockDisplay(display)
Display *display;
ARGUMENTS
display Specifies the connection to the X server.
DESCRIPTION
The XLockDisplay function locks out all other threads from using the
specified display. Other threads attempting to use the display will
block until the display is unlocked by this thread. Nested calls to
XLockDisplay work correctly; the display will not actually be unlocked
until XUnlockDisplay has been called the same number of times as XLock‐
Display. This function has no effect unless Xlib was successfully ini‐
tialized for threads using XInitThreads.
SEE ALSOXInitThreads(3X), XUnLockDisplay(3X)X Version 11 Release 6 XLockDisplay(3X)