No static initialization for recursive mutexes?

Enzo Michelangeli em@em.no-ip.com
Thu Jun 10 13:18:00 GMT 2004


Hi,

Recursive mutexes are supported by Pthreads-Win32, but
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP (or equivalent) is not defined in
pthread.h, unlike the default PTHREAD_MUTEX_INITIALIZER . Is there any way
of initializing recursive mutexes statically, rather than using
pthread_mutex_init()?

Enzo




More information about the Pthreads-win32 mailing list