5#include <condition_variable>
65 mutable std::mutex m_mutex ;
66 std::condition_variable m_cv;
Definition: Status.hpp:10
Status & operator=(const Status &other)
Definition: Status.cpp:20
~Status()
Definition: Status.cpp:9
void lock()
adds a writer to the status
Definition: Status.cpp:68
bool try_lock_shared()
Tries to add a reader to the status, will NOT block.
Definition: Status.cpp:47
bool isShareLockable() const
Definition: Status.cpp:113
bool isShareLocked() const
Definition: Status.cpp:101
void lock_shared()
adds a reader to the status
Definition: Status.cpp:40
Status()
Definition: Status.cpp:3
bool isLocked() const
Definition: Status.cpp:95
bool try_lock()
Tries to add a writer to the status, will NOT block.
Definition: Status.cpp:75
bool isLockable() const
Definition: Status.cpp:107
void unlock()
removes a writer from the status
Definition: Status.cpp:86
void unlock_shared()
removes a reader from the status
Definition: Status.cpp:58