#include <Mutex.h>
Public Member Functions | |
Mutex () | |
~Mutex () | |
int | Lock (void) |
int | UnLock (void) |
int | TryLock (void) |
pthread_mutex_t * | get_pthread_mutex () |
Private Attributes | |
pthread_mutex_t | fMutex |
Definition at line 59 of file Mutex.h.
Anp::Mutex::Mutex | ( | ) | [inline] |
Anp::Mutex::~Mutex | ( | ) | [inline] |
pthread_mutex_t * Anp::Mutex::get_pthread_mutex | ( | ) | [inline] |
Definition at line 151 of file Mutex.h.
References fMutex.
Referenced by Anp::CondVar::Wait().
00152 { 00153 return &fMutex; 00154 }
int Anp::Mutex::Lock | ( | void | ) | [inline] |
Definition at line 130 of file Mutex.h.
References fMutex.
Referenced by Anp::RunAlgSnarl::Config().
00131 { 00132 const int status_lock = pthread_mutex_lock(&fMutex); 00133 assert(status_lock == 0 && "pthread_mutex_lock() failed"); 00134 return status_lock; 00135 }
int Anp::Mutex::TryLock | ( | void | ) | [inline] |
int Anp::Mutex::UnLock | ( | void | ) | [inline] |
Definition at line 144 of file Mutex.h.
References fMutex.
Referenced by Anp::RunAlgSnarl::Config().
00145 { 00146 const int status_unlock = pthread_mutex_unlock(&fMutex); 00147 assert(status_unlock == 0 && "pthread_mutex_unlock() failed"); 00148 return status_unlock; 00149 }
pthread_mutex_t Anp::Mutex::fMutex [private] |