RE: [Boost-Users] detail/lightweight_mutex.hpp
From: Peter Dimov [mailto:pdimov@mmltd.net]
From: "Tom Matelich"
I'm attempting to go to Boost 1.28 on our HPUX 10.20 boxes. I've run into a problem with an assumption about the type of pthread_mutexattr_t. detail\lwm_pthreads.hpp calls:
pthread_mutex_init(&m_, 0);
HP's pthread.h (10.20 uses DCE) has that defined as:
int pthread_mutex_init (pthread_mutex_t *,pthread_mutexattr_t);
I don't know what to do about it. My POSIX draft says
int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr);
and goes on to specify that 0/NULL for the second argument causes default attributes to be used.
I know little - if anything - about HPUX 10.20; if you find a solution let me know, and I'll incorporate it into lwm_pthreads.hpp. Sorry.
The dce documentation I see says to use pthread_mutexattr_default. http://www.transarc.ibm.com/Library/documentation/dce/1.1/pthread_mutex_init .html So, it looks like I need to find a version to if or ifdef off of. ----------------------------------------------------------------------- DISCLAIMER: Information contained in this message and/or attachment(s) may contain confidential information of Zetec, Inc. If you have received this transmission in error, please notify the sender by return email. -----------------------------------------------------------------------
participants (1)
-
Tom Matelich