Home
last modified time | relevance | path

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

/system/nfc/src/include/
DNfcAdaptation.h45 class ThreadMutex {
47 ThreadMutex();
48 virtual ~ThreadMutex();
57 class ThreadCondVar : public ThreadMutex {
66 return ThreadMutex::operator pthread_mutex_t*();
75 explicit AutoThreadMutex(ThreadMutex& m);
77 explicit operator ThreadMutex&() { return mm; }
81 ThreadMutex& mm;
101 static ThreadMutex sLock;
/system/nfc/src/adaptation/
DNfcAdaptation.cc57 ThreadMutex NfcAdaptation::sLock;
796 ThreadMutex::ThreadMutex() { in ThreadMutex() function in ThreadMutex
813 ThreadMutex::~ThreadMutex() { pthread_mutex_destroy(&mMutex); } in ~ThreadMutex()
824 void ThreadMutex::lock() { pthread_mutex_lock(&mMutex); } in lock()
835 void ThreadMutex::unlock() { pthread_mutex_unlock(&mMutex); } in unlock()
903 AutoThreadMutex::AutoThreadMutex(ThreadMutex& m) : mm(m) { mm.lock(); } in AutoThreadMutex()