Open Lighting Architecture: ola::usb::MutexLocker Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | List of all members
ola::usb::MutexLocker Class Reference

## Detailed Description

A convenience class to lock mutexes. The mutex is unlocked when this object is destroyed.

## Public Member Functions
| MutexLocker (Mutex *mutex)
| ~MutexLocker ()
void | Release ()

## Constructor & Destructor Documentation

## ◆ MutexLocker()

ola::thread::MutexLocker::MutexLocker | ( | Mutex * | mutex | ) |
| explicit

Create a new MutexLocker and lock the mutex.

## ◆ ~MutexLocker()

ola::thread::MutexLocker::~MutexLocker | ( |  | ) |

Destroy this MutexLocker and unlock the mutex

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

- include/ola/thread/Mutex.h
- common/thread/Mutex.cpp