00001 #ifndef MUTEX_H 00002 #define MUTEX_H 00003 00004 #include <pthread.h> 00005 #include <stdio.h> 00006 00007 class Mutex 00008 { 00009 public: 00010 Mutex(char *title = 0); 00011 ~Mutex(); 00012 00013 int lock(char *location = 0); 00014 int unlock(); 00015 int trylock(); 00016 int reset(); 00017 00018 pthread_mutex_t mutex; 00019 char *title; 00020 }; 00021 00022 00023 #endif
1.4.4