17 #ifndef CYBER_BASE_RW_LOCK_GUARD_H_ 18 #define CYBER_BASE_RW_LOCK_GUARD_H_ 23 #include <condition_variable> 34 template <
typename RWLock>
37 explicit ReadLockGuard(RWLock& lock) : rw_lock_(lock) { rw_lock_.ReadLock(); }
47 template <
typename RWLock>
66 #endif // CYBER_BASE_RW_LOCK_GUARD_H_ WriteLockGuard(RWLock &lock)
Definition: rw_lock_guard.h:50
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
~ReadLockGuard()
Definition: rw_lock_guard.h:39
Definition: rw_lock_guard.h:48
ReadLockGuard(RWLock &lock)
Definition: rw_lock_guard.h:37
~WriteLockGuard()
Definition: rw_lock_guard.h:54
Definition: rw_lock_guard.h:35