Home | History | Annotate | Download | only in jni

Lines Matching refs:Mutex

18  *  Encapsulate a mutex for thread synchronization.
21 #include "Mutex.h"
27 ** Function: Mutex
34 Mutex::Mutex ()
40 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res);
47 ** Function: ~Mutex
54 Mutex::~Mutex ()
59 ALOGE ("Mutex::~Mutex: fail destroy; error=0x%X", res);
68 ** Description: Block the thread and try lock the mutex.
73 void Mutex::lock ()
78 ALOGE ("Mutex::lock: fail lock; error=0x%X", res);
87 ** Description: Unlock a mutex to unblock a thread.
92 void Mutex::unlock ()
97 ALOGE ("Mutex::unlock: fail unlock; error=0x%X", res);
106 ** Description: Try to lock the mutex.
108 ** Returns: True if the mutex is locked.
111 bool Mutex::tryLock ()
116 ALOGE ("Mutex::tryLock: error=0x%X", res);
126 ** Description: Get the handle of the mutex.
128 ** Returns: Handle of the mutex.
131 pthread_mutex_t* Mutex::nativeHandle ()