From: Ian Fasel (ianfasel_at_[hidden])
Date: 2006-04-13 22:53:14
This thread from Feb 2004 may be helpful:
"Darwin's pthreads implementation does not support the optional "Thread
Process-Shared Synchronization" functionality, so calling
pthread_mutexattr_setpshared() with the PTHREAD_PROCESS_SHARED
attribute will return EINVAL."
Darwin is the BSD-ish underbelly of Mac OS X, so it's not glibc but
Apple supplied. I'm using Mac OS X version 10.4.5, so this is the
most up to date darwin.
On Apr 13, 2006, at 4:34 AM, Ion Gaztañaga wrote:
> Hi Ian,
> Thanks for pointing out this. In the future, Shmem is becoming
> Interprocess so I plan to use Boost.Date_Time instead of my own time
>> With this patch, I am able to get the examples in shmem to build.
>> Unfortunately, it then fails in
>> because pthread_mutexattr_init fails.
> That might suggest that your darwin version does not support process
> shared mutexes. I'm sorry I don't check that explicitly in my config
> headers (I'm lost in all those POSIX option checkings).
> Maybe you need to update your c library (darwin uses glibc or
> to get both gettime and process shared mutexes. I will try to
> some basic tests for future bugfix Shmem versions.
> Unsubscribe & other changes: http://lists.boost.org/mailman/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk