Home
last modified time | relevance | path

Searched refs:ThreadMutex (Results 1 – 2 of 2) sorted by relevance

/system/nfc/src/include/
DNfcAdaptation.h47 class ThreadMutex {
49 ThreadMutex();
50 virtual ~ThreadMutex();
59 class ThreadCondVar : public ThreadMutex {
68 return ThreadMutex::operator pthread_mutex_t*();
77 explicit AutoThreadMutex(ThreadMutex& m);
79 explicit operator ThreadMutex&() { return mm; }
83 ThreadMutex& mm;
105 static ThreadMutex sLock;
/system/nfc/src/adaptation/
DNfcAdaptation.cc61 ThreadMutex NfcAdaptation::sLock;
825 ThreadMutex::ThreadMutex() { in ThreadMutex() function in ThreadMutex
842 ThreadMutex::~ThreadMutex() { pthread_mutex_destroy(&mMutex); } in ~ThreadMutex()
853 void ThreadMutex::lock() { pthread_mutex_lock(&mMutex); } in lock()
864 void ThreadMutex::unlock() { pthread_mutex_unlock(&mMutex); } in unlock()
932 AutoThreadMutex::AutoThreadMutex(ThreadMutex& m) : mm(m) { mm.lock(); } in AutoThreadMutex()