PMutexLocker Class Reference

Detailed Description

The PMutexLocker class is a convenience class that simplifies locking and unlocking mutexes.

Definition at line 28 of file PMutexLocker.h.

#include <PMutexLocker.h>

Constructor & Destructor Documentation

◆ PMutexLocker()

PMutexLocker::PMutexLocker ( PMutex mutex)

Constructs a PMutexLocker and locks mutex.

The mutex will be unlocked when the PMutexLocker is destroyed. If mutex is zero, PMutexLocker does nothing.

◆ ~PMutexLocker()

virtual PMutexLocker::~PMutexLocker ( )
virtual

Destroys this object and unlocks the mutex that was locked in the constructor.