AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::GeneralLock< MUTEX > Class Template Reference

#include "ThreadingModel.h"

Public Member Functions

 GeneralLock (MUTEX &m)
 
 ~GeneralLock ()
 

Private Member Functions

 GeneralLock (const GeneralLock &)
 
GeneralLockoperator= (const GeneralLock &)
 

Private Attributes

MUTEX & i_mutex
 

Detailed Description

template<typename MUTEX>
class Acore::GeneralLock< MUTEX >

Constructor & Destructor Documentation

◆ GeneralLock() [1/2]

template<typename MUTEX >
Acore::GeneralLock< MUTEX >::GeneralLock ( MUTEX &  m)
inline
33 : i_mutex(m)
34 {
35 i_mutex.lock();
36 }
MUTEX & i_mutex
Definition: ThreadingModel.h:46

References Acore::GeneralLock< MUTEX >::i_mutex.

◆ ~GeneralLock()

template<typename MUTEX >
Acore::GeneralLock< MUTEX >::~GeneralLock ( )
inline
39 {
40 i_mutex.unlock();
41 }

References Acore::GeneralLock< MUTEX >::i_mutex.

◆ GeneralLock() [2/2]

template<typename MUTEX >
Acore::GeneralLock< MUTEX >::GeneralLock ( const GeneralLock< MUTEX > &  )
private

Member Function Documentation

◆ operator=()

template<typename MUTEX >
GeneralLock & Acore::GeneralLock< MUTEX >::operator= ( const GeneralLock< MUTEX > &  )
private

Member Data Documentation

◆ i_mutex

template<typename MUTEX >
MUTEX& Acore::GeneralLock< MUTEX >::i_mutex
private