mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -08:00
Initialize thread support for Xlib.
* src/xterm.c (x_initialize) [THREADS_ENABLED]: Call XInitThreads before doing anything else with X.
This commit is contained in:
parent
108ef8033b
commit
b0239945a3
1 changed files with 7 additions and 0 deletions
|
|
@ -12762,6 +12762,13 @@ x_initialize (void)
|
|||
/* Try to use interrupt input; if we can't, then start polling. */
|
||||
Fset_input_interrupt_mode (Qt);
|
||||
|
||||
#if THREADS_ENABLED
|
||||
/* This must be called before any other Xlib routines. */
|
||||
if (XInitThreads () == 0)
|
||||
fprintf (stderr,
|
||||
"Warning: An error occurred initializing X11 thread support!\n");
|
||||
#endif
|
||||
|
||||
#ifdef USE_X_TOOLKIT
|
||||
XtToolkitInitialize ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue