HPUX 10.20 patch (problem reported by Tom Matelich)

[SVN r14943]
This commit is contained in:
Peter Dimov
2002-08-17 13:33:41 +00:00
parent 09016db3c3
commit bd4f575567

View File

@ -37,7 +37,14 @@ public:
lightweight_mutex()
{
// HPUX 10.20 / DCE has a nonstandard pthread_mutex_init
#if defined(__hpux) && defined(_DECTHREADS_)
pthread_mutex_init(&m_, pthread_mutexattr_default);
#else
pthread_mutex_init(&m_, 0);
#endif
}
~lightweight_mutex()