Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-16 09:16:09


From: "Tom Matelich" <tmatelich_at_[hidden]>
> 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.


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