Qt Utilities: QtUtilities::AdoptLocker< Mutex > Class Template Reference

Qt Utilities 6.22.1 Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models

Loading...
Searching...
No Matches
Public Member Functions | List of all members
QtUtilities::AdoptLocker< Mutex > Class Template Reference

Like QMutexLocker, but assumes that the mutex has already been locked. More...

`#include <adoptlocker.h>`

## Public Member Functions
| AdoptLocker (Mutex &mutex)
| Constructs the locker for the specified mutex.
| ~AdoptLocker ()
| Unlocks the mutex specified when constructing the instance.

## Detailed Description

template<typename Mutex = QMutex>
class QtUtilities::AdoptLocker< Mutex >

Like QMutexLocker, but assumes that the mutex has already been locked.

Definition at line 13 of file adoptlocker.h.

## Constructor & Destructor Documentation

## ◆ AdoptLocker()

template<typename Mutex = QMutex>

QtUtilities::AdoptLocker< Mutex >::AdoptLocker | ( | Mutex & | mutex | ) |
| inline

Constructs the locker for the specified mutex.

Definition at line 18 of file adoptlocker.h.

## ◆ ~AdoptLocker()

template<typename Mutex = QMutex>

QtUtilities::AdoptLocker< Mutex >::~AdoptLocker | ( |  | ) |
| inline

Unlocks the mutex specified when constructing the instance.

Definition at line 26 of file adoptlocker.h.

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

- misc/adoptlocker.h