mutex.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef MUTEX_H__
00015 #define MUTEX_H__
00016
00017 #include "macros.h"
00018
00019 namespace gloox
00020 {
00021
00022 namespace util
00023 {
00033 class GLOOX_API Mutex
00034 {
00035 public:
00039 Mutex();
00040
00044 ~Mutex();
00045
00049 void lock();
00050
00058 bool trylock();
00059
00063 void unlock();
00064
00065 private:
00066 class MutexImpl;
00067
00068 Mutex& operator=( const Mutex& );
00069 MutexImpl* m_mutex;
00070
00071 };
00072
00073 }
00074
00075 }
00076
00077 #endif // MUTEX_H__