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 ACE_thread_mutex_t mutex_
void lock()
Mutual exclusion lock.
void unlock()
Mutual exclusion unlock.
bool trylock()
Mutual exclusion non-blocking lock.
Mutex(const char *const name=0)
Constructor.
pthread_mutex_t mutex_
Mutual exclusion object.
Mutex(const char *naem=0)
Mutex & operator=(const Mutex &)
Common Object Interface Layer.