|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-17 08:26:40
From: "Tom Matelich" <tmatelich_at_[hidden]>
>
> I found a define in dce/cma.h (appended to my original email) which seems
to
> fit the bill:
>
> /*
> * Define a symbol which client code can test to determine whether the
> * underlying threads package is DECthreads or not. This is especially
> * important to clients of the Pthreads interface who may want to use
> * certain DECthreads extensions, such as the global lock and
non-real-time
> * scheduling policies, on the DECthreads platform while maintaining
> * portability to a "vanilla" pthreads implementation.
> */
> #define _DECTHREADS_ 1
OK, I'll change pthread_mutex_init(&m_, 0); to
#if defined(__hpux) && defined(_DECTHREADS_)
pthread_mutex_init(&m_, pthread_mutexattr_default);
#else
pthread_mutex_init(&m_, 0);
#endif
Let me know if this solves the problem.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net