#include <Lock.h>
Public Member Functions | |
Lock (Mutex *mutex) | |
Lock (Mutex *mutex) | |
Public Attributes | |
Mutex * | _mutex |
Mutex * | _mutex |
Usage
func()
{
// mutex released when lock goes out of scope
Lock lock( &mutex );
...
}