Qt Utilities  5.12.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
Public Member Functions | List of all members
ThreadingUtils::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. More...
 
 ~AdoptLocker ()
 
Unlocks the mutex specified when constructing the instance. More...
 

Detailed Description

template<typename Mutex = QMutex>
class ThreadingUtils::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>
ThreadingUtils::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>
ThreadingUtils::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: