FRI-OS
|
Class locking a mutex on construction and unlocking on destruction. More...
#include <frios/posix/threads/mutex.hpp>
Public Member Functions | |
lock (mutex &mutex) | |
Locks the specified mutex. More... | |
~lock (void) | |
Unlocks the mutex locked in the constructor. | |
Class locking a mutex on construction and unlocking on destruction.
Instances of the lock class lock a specified mutex when they are constructed and unlock it when they are destroyed.
Example of usage:
Locks the specified mutex.
lock_error |