1 #ifndef MUTEXREADWRITE_HPP
2 #define MUTEXREADWRITE_HPP
4 #include "blub/async/predecl.hpp"
6 #include <boost/thread/locks.hpp>
7 #include <boost/thread/shared_mutex.hpp>
18 typedef boost::shared_mutex t_base;
31 t_base::lock_shared();
35 t_base::unlock_shared();
41 bool tryLockForWrite()
43 return t_base::try_lock();
50 typedef boost::unique_lock<boost::shared_mutex> mutexLockerWrite;
51 typedef boost::shared_lock<boost::shared_mutex> mutexLockerRead;
57 #endif // MUTEXREADWRITE_HPP
Definition: deadlineTimer.hpp:10
Definition: mutexReadWrite.hpp:15