SDL  2.0
hid_mutex_guard Class Reference

Public Member Functions

 hid_mutex_guard (pthread_mutex_t *pMutex)
 
 ~hid_mutex_guard ()
 

Private Attributes

pthread_mutex_t * m_pMutex
 

Detailed Description

Definition at line 114 of file hid.cpp.

Constructor & Destructor Documentation

◆ hid_mutex_guard()

hid_mutex_guard::hid_mutex_guard ( pthread_mutex_t *  pMutex)
inline

Definition at line 117 of file hid.cpp.

117  : m_pMutex( pMutex )
118  {
119  pthread_mutex_lock( m_pMutex );
120  }
pthread_mutex_t * m_pMutex
Definition: hid.cpp:127

◆ ~hid_mutex_guard()

hid_mutex_guard::~hid_mutex_guard ( )
inline

Definition at line 121 of file hid.cpp.

122  {
123  pthread_mutex_unlock( m_pMutex );
124  }
pthread_mutex_t * m_pMutex
Definition: hid.cpp:127

Field Documentation

◆ m_pMutex

pthread_mutex_t* hid_mutex_guard::m_pMutex
private

Definition at line 127 of file hid.cpp.


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