Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Mutex.unix.h

00001 /*
00002   File: Mutex.unix.h
00003 
00004   Copyright(C) C. Kotterink, Computed Graphics
00005 */
00006 #ifndef MUTEX_H
00007 #define MUTEX_H
00008 
00009 #include<pthread.h>
00010 
00016 class Mutex
00017 {
00018 public:
00020     Mutex();
00021 
00023     ~Mutex();
00024 
00026     void lock();
00027 
00029     void unlock();
00030 
00032     bool trylock();
00033 
00034 private:
00036     pthread_mutex_t mutex;
00037 };
00038 #endif

This documentation was generated using doxygen. If you have any comments or additions please mail me.