Mutex.  
 More...
#include <JMutex.hh>
Mutex. 
Definition at line 92 of file JMutex.hh.
 
  
  
      
        
          | JSYNCHRONIZATION::JMutex::JMutex  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | JSYNCHRONIZATION::JMutex::~JMutex  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | int JSYNCHRONIZATION::JMutex::lock  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Lock the mutex. 
- Returns
 - 0 on success, an error code otherwise. See man 3p pthread_mutex_lock for further info. 
 
Definition at line 119 of file JMutex.hh.
  121     return pthread_mutex_lock(&
m_mutex);
 
 
 
 
  
  
      
        
          | int JSYNCHRONIZATION::JMutex::try_lock  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Try lock the mutex. 
- Returns
 - 0 on success, an error code otherwise. See man 3p pthread_mutex_lock for further info. 
 
Definition at line 129 of file JMutex.hh.
  131     return pthread_mutex_trylock(&
m_mutex);
 
 
 
 
  
  
      
        
          | int JSYNCHRONIZATION::JMutex::unlock  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Unlock the mutex. 
- Returns
 - 0 on success, an error code otherwise. See man 3p pthread_mutex_lock for further info. 
 
Definition at line 139 of file JMutex.hh.
  141     return pthread_mutex_unlock(&
m_mutex);
 
 
 
 
  
  
      
        
          | pthread_mutex_t JSYNCHRONIZATION::JMutex::m_mutex | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: