1 #ifndef _included_mutex
2 #define _included_mutex
7 private:pthread_mutex_t m;
10 pthread_mutex_init (&m, 0);
14 pthread_mutex_destroy (&m);
16 operator pthread_mutex_t & ()
24 private:pthread_mutex_t * m;
25 public:CriticalSection (pthread_mutex_t & _m)
28 pthread_mutex_lock (m);
32 pthread_mutex_unlock (m);