|
IBR-DTNSuite 0.6
|
00001 #ifndef IBRCOMMON_MUTEXLOCK_H_ 00002 #define IBRCOMMON_MUTEXLOCK_H_ 00003 00004 #include "ibrcommon/thread/Mutex.h" 00005 00006 namespace ibrcommon 00007 { 00008 class MutexLock 00009 { 00010 public: 00011 MutexLock(MutexInterface &m); 00012 virtual ~MutexLock(); 00013 00014 private: 00015 MutexInterface &m_mutex; 00016 }; 00017 00018 class IndicatingLock : public MutexLock 00019 { 00020 public: 00021 IndicatingLock(MutexInterface &m, bool &indicator); 00022 virtual ~IndicatingLock(); 00023 00024 private: 00025 bool &_indicator; 00026 }; 00027 } 00028 00029 #endif /*IBRCOMMON_MUTEXLOCK_H_*/