Home | History | Annotate | Download | only in adaptation

Lines Matching refs:Mutex

21  *  Encapsulate a mutex for thread synchronization.
27 #include "Mutex.h"
32 ** Function: Mutex
39 Mutex::Mutex ()
45 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res);
52 ** Function: ~Mutex
59 Mutex::~Mutex ()
64 ALOGE ("Mutex::~Mutex: fail destroy; error=0x%X", res);
73 ** Description: Block the thread and try lock the mutex.
78 void Mutex::lock ()
83 ALOGE ("Mutex::lock: fail lock; error=0x%X", res);
92 ** Description: Unlock a mutex to unblock a thread.
97 void Mutex::unlock ()
102 ALOGE ("Mutex::unlock: fail unlock; error=0x%X", res);
111 ** Description: Try to lock the mutex.
113 ** Returns: True if the mutex is locked.
116 bool Mutex::tryLock ()
121 ALOGE ("Mutex::tryLock: error=0x%X", res);
131 ** Description: Get the handle of the mutex.
133 ** Returns: Handle of the mutex.
136 pthread_mutex_t* Mutex::nativeHandle ()