62 Mutex(
const char *
const name = 0)
64 ::pthread_mutex_init(&
mutex_, 0);
84 ::pthread_mutex_destroy(&
mutex_);
104 ::pthread_mutex_lock(&
mutex_);
124 return ::pthread_mutex_trylock(&
mutex_);
144 ::pthread_mutex_unlock(&
mutex_);
165 #endif // COIL_MUTEX_H
Mutex クラス
Definition: Mutex.h:40
void lock()
排他制御のロック
Definition: Mutex.h:102
~Mutex()
デストラクタ
Definition: Mutex.h:82
void unlock()
排他制御のロック解除
Definition: Mutex.h:142
bool trylock()
排他制御のノンブロッキングロック
Definition: Mutex.h:122
Mutex(const char *const name=0)
コンストラクタ
Definition: Mutex.h:62
pthread_mutex_t mutex_
排他制御オブジェクト
Definition: Mutex.h:158