MMDevice
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MMThreadGuard Class Reference

RAII object to acquire and auto-release MMThreadLock. More...

#include <DeviceThreads.h>

Public Member Functions

 MMThreadGuard (MMThreadLock &lock)
 
 MMThreadGuard (MMThreadLock *lock)
 
 ~MMThreadGuard ()
 
 MMThreadGuard (const MMThreadGuard &)=delete
 
MMThreadGuard & operator= (const MMThreadGuard &)=delete
 
 MMThreadGuard (MMThreadGuard &&)=delete
 
MMThreadGuard & operator= (MMThreadGuard &&)=delete
 

Detailed Description

RAII object to acquire and auto-release MMThreadLock.

Attention
New code should use std::lock_guard instead.

Constructor & Destructor Documentation

◆ MMThreadGuard() [1/4]

MMThreadGuard::MMThreadGuard ( MMThreadLock & lock)
inline

◆ MMThreadGuard() [2/4]

MMThreadGuard::MMThreadGuard ( MMThreadLock * lock)
inline

◆ ~MMThreadGuard()

MMThreadGuard::~MMThreadGuard ( )
inline

◆ MMThreadGuard() [3/4]

MMThreadGuard::MMThreadGuard ( const MMThreadGuard & )
delete

◆ MMThreadGuard() [4/4]

MMThreadGuard::MMThreadGuard ( MMThreadGuard && )
delete

Member Function Documentation

◆ operator=() [1/2]

MMThreadGuard & MMThreadGuard::operator= ( const MMThreadGuard & )
delete

◆ operator=() [2/2]

MMThreadGuard & MMThreadGuard::operator= ( MMThreadGuard && )
delete

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