27# include <X11/Xlibint.h>
42 if (_Xglobal_lock == NULL &&
unlikely(_XErrorFunction != NULL))
45 fprintf (stderr,
"%s:%u:%s: Xlib not initialized for threads.\n"
46 "This process is probably using LibVLC incorrectly.\n"
47 "Pass \"--no-xlib\" to libvlc_new() to fix this.\n",
48 __FILE__, __LINE__, __func__);
49 else if (XInitThreads ())
55 msg_Err (obj,
"Xlib not initialized for threads");
#define unlikely(p)
Predicted false condition.
Definition: vlc_common.h:257
#define msg_Err(p_this,...)
Definition: vlc_messages.h:102
#define vlc_global_lock(n)
Acquires a global mutex.
Definition: vlc_threads.h:1158
#define vlc_global_unlock(n)
Releases a global mutex.
Definition: vlc_threads.h:1163
@ VLC_XLIB_MUTEX
Definition: vlc_threads.h:1138
static bool var_InheritBool(vlc_object_t *obj, const char *name)
Definition: vlc_variables.h:675
VLC object common members.
Definition: vlc_objects.h:45
This file is a collection of common definitions and types.
Thread primitive declarations.
static bool vlc_xlib_init(vlc_object_t *obj)
Definition: vlc_xlib.h:32