Go to the documentation of this file.
26 # include <X11/Xlib.h>
27 # include <X11/Xlibint.h>
40 if (_Xglobal_lock == NULL &&
unlikely(_XErrorFunction != NULL))
43 fprintf (stderr,
"%s:%u:%s: Xlib not initialized for threads.\n"
44 "This process is probably using LibVLC incorrectly.\n"
45 "Pass \"--no-xlib\" to libvlc_new() to fix this.\n",
46 __FILE__, __LINE__, __func__);
47 else if (XInitThreads ())
53 msg_Err (obj,
"Xlib not initialized for threads");
#define vlc_global_lock(n)
Acquires a global mutex.
Definition: vlc_threads.h:1074
static bool vlc_xlib_init(vlc_object_t *obj)
Definition: vlc_xlib.h:29
#define vlc_global_unlock(n)
Releases a global mutex.
Definition: vlc_threads.h:1079
#define var_InheritBool(o, n)
Definition: vlc_variables.h:601
The main vlc_object_t structure.
Definition: vlc_objects.h:39
Definition: vlc_threads.h:1053
#define unlikely(p)
Definition: vlc_common.h:114
#define msg_Err(p_this,...)
Definition: vlc_messages.h:82