16 Aug
2002
16 Aug
'02
2:16 p.m.
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.