13 #ifndef __GU_MONITOR_HPP__
14 #define __GU_MONITOR_HPP__
16 #include <gu_lock.hpp>
33 pthread_t
mutable holder;
45 Monitor() : refcnt(0), mutex(), cond(), holder(0) {}
47 Monitor() : refcnt(0), mutex(), cond() {}
64 holder = pthread_self();
73 assert(pthread_equal(holder, pthread_self()) != 0);
Definition: gu_lock.hpp:20
Definition: gu_mutex.hpp:19
Definition: gu_cond.hpp:19
Definition: gu_monitor.hpp:26
Definition: gu_monitor.hpp:83