Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 122380 Details for
Bug 176839
x11-libs/libxcb has tightened locking requirements, numerous applications fail
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libxcb-no-assert-on-lock.patch
libxcb-no-assert-on-lock.patch (text/plain), 841 bytes, created by
Russell Harmon
on 2007-06-18 01:21:11 UTC
(
hide
)
Description:
libxcb-no-assert-on-lock.patch
Filename:
MIME Type:
Creator:
Russell Harmon
Created:
2007-06-18 01:21:11 UTC
Size:
841 bytes
patch
obsolete
>--- src/xcb_xlib.c.orig 2006-11-25 22:03:30.000000000 +0000 >+++ src/xcb_xlib.c 2006-11-25 22:19:28.000000000 +0000 >@@ -38,18 +38,20 @@ > void xcb_xlib_lock(xcb_connection_t *c) > { > _xcb_lock_io(c); >- assert(!c->xlib.lock); >- c->xlib.lock = 1; >- c->xlib.thread = pthread_self(); >+ if (!c->xlib.lock) { >+ c->xlib.lock = 1; >+ c->xlib.thread = pthread_self(); >+ } > _xcb_unlock_io(c); > } > > void xcb_xlib_unlock(xcb_connection_t *c) > { > _xcb_lock_io(c); >- assert(c->xlib.lock); >- assert(pthread_equal(c->xlib.thread, pthread_self())); >- c->xlib.lock = 0; >- pthread_cond_broadcast(&c->xlib.cond); >+ if (c->xlib.lock) { >+ assert(pthread_equal(c->xlib.thread, pthread_self())); >+ c->xlib.lock = 0; >+ pthread_cond_broadcast(&c->xlib.cond); >+ } > _xcb_unlock_io(c); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 176839
:
121264
|
121266
| 122380