AlarmNotifications
PANDA Slow Control Alarm Daemon
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
x11compat.cpp
Go to the documentation of this file.
1 
34 #include "x11compat.h"
35 
36 #include <stdexcept>
37 
38 // This include creates a lot of defines like "None" that will break
39 // enums in other header files, so this function call has
40 // been isolated into its own translation unit:
41 #include "X11/Xlib.h"
42 
43 using namespace AlarmNotifications;
44 
46 {
47  const int result = XInitThreads();
48  if ( result == 0 )
49  throw std::logic_error ( "Could not initialize X11 threads!" );
50 }
Namespace for Alarm Notifications application.
Compability wrapper for the X11 API.
void InitializeXThreads()
Call XInitThreads() from Xlib.
Definition: x11compat.cpp:45