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 nptl/19578] Bind lock and condition variable to share memory address (share between processes)


https://sourceware.org/bugzilla/show_bug.cgi?id=19578

--- Comment #2 from Dima Tisnek <dimaqq at gmail dot com> ---
What I was looking for was using same condition variable from two processes
that don't have a parent-child relationship.

There's a solution at http://stackoverflow.com/a/35511763/705086 that uses
pthread_xxx primitives with PTHREAD_PROCESS_SHARED flag on a mmap()ed region.

I was hoping to use futex primitives more directly, but sheer number of corner
cases makes that impractical.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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