[AD] deadlock in 4.3.10plus svn |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I upgraded X11, and now all Allegro programs deadlock. The attached
patch "fixes" it for me.. should I apply it for now until someone writes
a proper fix? I don't really know what the problem is, we use pthread
locks so it *should* work. OTOH waiting inside a lock never is a good
idea so the current code isn't really ideal either. (In A5 the
background thread checks for the mapped event and signals a condition
variable to get the same effect.)
My X11 says:
"""
X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.17.7 x86_64 Debian
Current Operating System: Linux debian 2.6.26-2008-12-21 #1 SMP PREEMPT
Sun Dec 21 14:27:09 CET 2008 x86_64
Build Date: 12 November 2008 12:59:43PM
xorg-server 2:1.5.3-1 (buildd@xxxxxxxxxx)
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
"""
--
Elias Pschernig <elias@xxxxxxxxxx>
Index: src/x/xwin.c
===================================================================
--- src/x/xwin.c (revision 11353)
+++ src/x/xwin.c (working copy)
@@ -798,7 +798,8 @@
/* Map the fullscreen window. */
XMapRaised(_xwin.display, _xwin.fs_window);
- _xwin_wait_mapped(_xwin.fs_window);
+ //deadlocks with my X11 version
+ //_xwin_wait_mapped(_xwin.fs_window);
/* Make sure we got to the top of the window stack. */
XRaiseWindow(_xwin.display, _xwin.fs_window);