amino
Lightweight Robot Utility Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
amino::ScopedMutex Class Reference

Locks mutex on construction, unlocks on destruction. More...

#include <amino.hpp>

Public Member Functions

 ScopedMutex (pthread_mutex_t *m)
 costruct this and lock m
 
 ScopedMutex (pthread_mutex_t &m)
 costruct this and lock m
 
 ~ScopedMutex ()
 destroy this and unlock m
 

Detailed Description

Locks mutex on construction, unlocks on destruction.

Definition at line 63 of file amino.hpp.


The documentation for this class was generated from the following file: