59 explicit Lock_guard(pthread_mutex_t &lock) : _lock(&lock)
61 _status = pthread_mutex_lock(_lock);
97 _status = guard._status;
156 _status = pthread_mutex_unlock(_lock);
161 pthread_mutex_t *_lock;
Basic lock guard implementation that prevents forgotten unlocks on exit paths from a method or a bloc...
Lock_guard(Lock_guard &&guard)
Move constructor from other lock guard.
Lock_guard(pthread_mutex_t &lock)
Construct the lock guard and lock the associated mutex.
~Lock_guard()
Lock guard destructor.
Lock_guard & operator=(Lock_guard &&guard)
Move assignment from other lock guard.
int status() const
Return last lock/unlock operation error status.
L4 low-level kernel interface.