Boost logo

Boost :

From: Ian Fasel (ianfasel_at_[hidden])
Date: 2006-04-13 22:53:14

Hi Ion,

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
> functions.
>> With this patch, I am able to get the examples in shmem to build.
>> Unfortunately, it then fails in
>> boost::shmem::detail::mutexattr_wrapper::mutexattr_wrapper
>> 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
> similar?)
> to get both gettime and process shared mutexes. I will try to
> implement
> some basic tests for future bugfix Shmem versions.
> Regards,
> Ion
> _______________________________________________
> Unsubscribe & other changes:
> listinfo.cgi/boost

Boost list run by bdawes at, gregod at, cpdaniel at, john at