KINECT STATS GENERATOR FOR SPORTS VISUALISATION  1.0
Mutex.h
Go to the documentation of this file.
00001 #ifndef __MUTEX_H__
00002 #define __MUTEX_H__
00003 #include <pthread.h>
00004 
00005 class Mutex
00006 {
00007 public:
00008   Mutex() {
00009     pthread_mutex_init( &m_mutex, NULL );
00010   }
00011   void lock() {
00012     pthread_mutex_lock( &m_mutex );
00013   }
00014   void unlock() {
00015     pthread_mutex_unlock( &m_mutex );
00016   }
00017 private:
00018   pthread_mutex_t m_mutex;
00019 };
00020 
00021 
00022 #endif // MUTEX_H
 All Classes Files Functions Variables Enumerations Enumerator