IPC mutex

From: Andreas Birkholz <A.Birkholz_at_alcatel.de>
Date: Fri, 01 Dec 2000 16:17:09 +0100

Hello,

I have a set of Solaris programs that use IPC mutexes (mutexes that are stored in a file and mapped via mmap into memory)
to synchronise. Now I have to port it to Tru64 and pthread_mutex_init() gives error code 78 if
PTHREAD_PROCESS_SHARED is set in the pthread_mutexattr_t structure. If I don't set PTHREAD_PROCESS_SHARED
the first process locks the mutex but the second process wait forever then (even if process 1 unlocked the mutex).
What's wrong here? Is there a possibility to synchronise different processes under Tru64?

Thank you,
Andreas Birkholz
-- 
-----------------------------------------------------------------------
 Andreas Birkholz                                    ALCATEL SEL AG
 Department: VB/EAF-1 (MeasServ, OSI/X25 Design)     Colditzstr. 34-36
 Phone:      +49-30-7002 3425                        12099 Berlin 
 mailto:A.Birkholz_at_alcatel.de                        Germany
-----------------------------------------------------------------------
Received on Fri Dec 01 2000 - 15:27:46 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT