This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5458] PI Mutex Fix breaks multiple program condition variables


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]