Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/sync.hpp"
Facility for monitor object based locking.
To be attached either on a per class base or per object base. Typically, the client class will inherit from this template (but it is possible to use it stand-alone, if inheriting isn't an option). The interface for clients to access the functionality is the embedded Lock template, which should be instantiated as an automatic variable within the scope to be protected.
true
when the condition was met, and false
if awakened due to timeout. The call might throw in case of technical errors. In any case, when returning from the wait()
call, the mutex has been re-acquired. Static Public Member Functions | |
static Monitor & | getMonitor (Sync const *forThis) |
Classes | |
class | Lock |
scoped guard to control the actual locking. More... | |
Private Types | |
using | Monitor = sync::Monitor< CONF > |
Private Attributes | |
Monitor | objectMonitor_ |