This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5458] PI Mutex Fix breaks multiple program condition variables
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Dec 2007 22:26:16 -0000
- Subject: [Bug libc/5458] PI Mutex Fix breaks multiple program condition variables
- References: <20071207221634.5458.john.klug@unisys.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2007-12-07 22:26 -------
If this fails, then you just have a buggy program.
Because this is only tested after testing for pshared condvars:
/* Do not use requeue for pshared condvars. */
if (cond->__data.__mutex == (void *) ~0l)
goto wake_all;
is in C code, the assembly is equivalent (see comparison to -1 and jump).
You must not use a process private condvar between multiple processes,
you need
pthread_condattr_init/pthread_condattr_setpshared/pthread_condattr_destroy to
make the condvar created as process shared.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=5458
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.