IBR-DTNSuite
0.8
|
00001 /* 00002 * RWLock.h 00003 * 00004 * Created on: 27.03.2012 00005 * Author: morgenro 00006 */ 00007 00008 #ifndef RWLOCK_H_ 00009 #define RWLOCK_H_ 00010 00011 #include "ibrcommon/thread/RWMutex.h" 00012 00013 namespace ibrcommon 00014 { 00015 class RWLock 00016 { 00017 public: 00018 RWLock(RWMutex &mutex, RWMutex::LockState state); 00019 virtual ~RWLock(); 00020 00021 private: 00022 RWMutex &_mutex; 00023 }; 00024 } /* namespace ibrcommon */ 00025 #endif /* RWLOCK_H_ */