Go to the documentation of this file.
8 #include <botan/internal/mux_pthr.h>
9 #include <botan/exceptn.h>
11 #ifndef _POSIX_C_SOURCE
12 #define _POSIX_C_SOURCE 199506
25 class Pthread_Mutex :
public Mutex
30 if(pthread_mutex_lock(&
mutex) != 0)
36 if(pthread_mutex_unlock(&
mutex) != 0)
42 if(pthread_mutex_init(&
mutex, 0) != 0)
48 if(pthread_mutex_destroy(&
mutex) != 0)
52 pthread_mutex_t
mutex;
55 return new Pthread_Mutex();