Home | History | Annotate | Download | only in jni

Lines Matching refs:Mutex

18  *  Encapsulate a mutex for thread synchronization.
21 #include "Mutex.h"
29 ** Function: Mutex
36 Mutex::Mutex ()
42 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res);
49 ** Function: ~Mutex
56 Mutex::~Mutex ()
61 ALOGE ("Mutex::~Mutex: fail destroy; error=0x%X", res);
70 ** Description: Block the thread and try lock the mutex.
75 void Mutex::lock ()
80 ALOGE ("Mutex::lock: fail lock; error=0x%X", res);
89 ** Description: Unlock a mutex to unblock a thread.
94 void Mutex::unlock ()
99 ALOGE ("Mutex::unlock: fail unlock; error=0x%X", res);
108 ** Description: Try to lock the mutex.
110 ** Returns: True if the mutex is locked.
113 bool Mutex::tryLock ()
118 ALOGE ("Mutex::tryLock: error=0x%X", res);
128 ** Description: Get the handle of the mutex.
130 ** Returns: Handle of the mutex.
133 pthread_mutex_t* Mutex::nativeHandle ()