ManaPlus
Public Member Functions | Private Member Functions | Private Attributes
fast_mutex_autolock Class Reference

#include <fast_mutex.h>

Public Member Functions

 fast_mutex_autolock (fast_mutex &mtx)
 
 ~fast_mutex_autolock ()
 

Private Member Functions

 fast_mutex_autolock (const fast_mutex_autolock &)
 
fast_mutex_autolockoperator= (const fast_mutex_autolock &)
 

Private Attributes

fast_mutex_M_mtx
 

Detailed Description

RAII lock class for fast_mutex.

Definition at line 409 of file fast_mutex.h.

Constructor & Destructor Documentation

◆ fast_mutex_autolock() [1/2]

fast_mutex_autolock::fast_mutex_autolock ( fast_mutex mtx)
inlineexplicit

Definition at line 413 of file fast_mutex.h.

413  : _M_mtx(mtx)
414  {
415  _M_mtx.lock();
416  }
fast_mutex & _M_mtx
Definition: fast_mutex.h:411
void lock()
Definition: fast_mutex.h:386

References _M_mtx, and fast_mutex::lock().

◆ ~fast_mutex_autolock()

fast_mutex_autolock::~fast_mutex_autolock ( )
inline

Definition at line 417 of file fast_mutex.h.

418  {
419  _M_mtx.unlock();
420  }
void unlock()
Definition: fast_mutex.h:393

References _M_mtx, and fast_mutex::unlock().

◆ fast_mutex_autolock() [2/2]

fast_mutex_autolock::fast_mutex_autolock ( const fast_mutex_autolock )
private

Member Function Documentation

◆ operator=()

fast_mutex_autolock& fast_mutex_autolock::operator= ( const fast_mutex_autolock )
private

Field Documentation

◆ _M_mtx

fast_mutex& fast_mutex_autolock::_M_mtx
private

Definition at line 411 of file fast_mutex.h.

Referenced by fast_mutex_autolock(), and ~fast_mutex_autolock().


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