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

Critical section lock. More...

#include <DeviceThreads.h>

Public Member Functions

 MMThreadLock ()=default
 
 ~MMThreadLock ()=default
 
 MMThreadLock (const MMThreadLock &)=delete
 
MMThreadLock & operator= (const MMThreadLock &)=delete
 
 MMThreadLock (MMThreadLock &&)=delete
 
MMThreadLock & operator= (MMThreadLock &&)=delete
 
void Lock ()
 
void Unlock ()
 

Detailed Description

Critical section lock.

Attention
New code should use std::mutex or std::recursive_mutex instead (note that MMThreadLock is recursive).

Constructor & Destructor Documentation

◆ MMThreadLock() [1/3]

MMThreadLock::MMThreadLock ( )
default

◆ ~MMThreadLock()

MMThreadLock::~MMThreadLock ( )
default

◆ MMThreadLock() [2/3]

MMThreadLock::MMThreadLock ( const MMThreadLock & )
delete

◆ MMThreadLock() [3/3]

MMThreadLock::MMThreadLock ( MMThreadLock && )
delete

Member Function Documentation

◆ Lock()

void MMThreadLock::Lock ( )
inline

◆ operator=() [1/2]

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

◆ operator=() [2/2]

MMThreadLock & MMThreadLock::operator= ( MMThreadLock && )
delete

◆ Unlock()

void MMThreadLock::Unlock ( )
inline

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