Re: Shared memory Question using shmctl()

From: Anton Petrusevich (casus_at_att-ltd.biz)
Date: 08/30/05


Date: Tue, 30 Aug 2005 23:16:45 +0200

Maxim Yegorushkin wrote:

> Did you make your mutex and condition variable process shared?
> (PTHREAD_PROCESS_SHARED)

My "man" hides "PTHREAD_PROCESS_SHARED" related information from me. I was
looking around but was unable to find any. Instead of that I found: "The
LinuxThreads implementation supports no attributes for conditions. The
functions on condition attributes are included only for compliance with the
POSIX standard.". And for mutexes there's no such attribute. May be my
Linux is not Unix enough?

> I don't have sample code.

That is why I was curious.

But I looked into W. Richard Stevens book and into /usr/include/pthread.h
and see that you are right, may be my manuals are outdated a bit. Thanks
for the info.

-- 
Anton Petrusevich