|
Fawkes API
Fawkes Development Version
|
Helper class to incorporate bool into mutex locker with RAII. More...
Public Member Functions | |
| BoolMutexLocker (Mutex *mutex, bool &associated_bool) | |
| Constructor. More... | |
| ~BoolMutexLocker (void) | |
| Destructor. More... | |
| void | unlock (void) |
| Unlock mutex. More... | |
| void | relock (void) |
| Relock mutex after unlock. More... | |
Helper class to incorporate bool into mutex locker with RAII.
Definition at line 35 of file clingo_access.cpp.
|
inline |
Constructor.
| mutex | mutex to lock |
| associated_bool | associated bool value |
Definition at line 42 of file clingo_access.cpp.
References fawkes::Mutex::lock().
|
inline |
|
inline |
Relock mutex after unlock.
Definition at line 73 of file clingo_access.cpp.
References fawkes::Mutex::lock().
Referenced by ~BoolMutexLocker().
|
inline |
Unlock mutex.
Definition at line 65 of file clingo_access.cpp.
References fawkes::Mutex::unlock().
Referenced by ~BoolMutexLocker().