Lines Matching full:mutex
21 * Encapsulate a mutex for thread synchronization.
27 #include "Mutex.h"
33 ** Function: Mutex
40 Mutex::Mutex ()
46 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res);
53 ** Function: ~Mutex
60 Mutex::~Mutex ()
65 ALOGE ("Mutex::~Mutex: fail destroy; error=0x%X", res);
74 ** Description: Block the thread and try lock the mutex.
79 void Mutex::lock ()
84 ALOGE ("Mutex::lock: fail lock; error=0x%X", res);
93 ** Description: Unlock a mutex to unblock a thread.
98 void Mutex::unlock ()
103 ALOGE ("Mutex::unlock: fail unlock; error=0x%X", res);
112 ** Description: Try to lock the mutex.
114 ** Returns: True if the mutex is locked.
117 bool Mutex::tryLock ()
122 ALOGE ("Mutex::tryLock: error=0x%X", res);
132 ** Description: Get the handle of the mutex.
134 ** Returns: Handle of the mutex.
137 pthread_mutex_t* Mutex::nativeHandle ()