Home
last modified time | relevance | path

Searched refs:mMutex (Results 1 – 25 of 26) sorted by relevance

12

/system/nfc/halimpl/bcm2079x/adaptation/
DMutex.cpp41 memset(&mMutex, 0, sizeof(mMutex)); in Mutex()
42 int res = pthread_mutex_init(&mMutex, NULL); in Mutex()
58 int res = pthread_mutex_destroy(&mMutex); in ~Mutex()
74 int res = pthread_mutex_lock(&mMutex); in lock()
90 int res = pthread_mutex_unlock(&mMutex); in unlock()
106 int res = pthread_mutex_trylock(&mMutex); in tryLock()
122 pthread_mutex_t* Mutex::nativeHandle() { return &mMutex; } in nativeHandle()
DSyncEvent.h50 void start() { mMutex.lock(); } in start()
61 void wait() { mCondVar.wait(mMutex); } in wait()
74 bool retVal = mCondVar.wait(mMutex, millisec); in wait()
99 void end() { mMutex.unlock(); } in end()
103 Mutex mMutex; variable
DMutex.h97 pthread_mutex_t mMutex;
/system/core/libutils/include/utils/
DMutex.h100 pthread_mutex_t mMutex; variable
112 pthread_mutex_init(&mMutex, NULL); in Mutex()
115 pthread_mutex_init(&mMutex, NULL); in Mutex()
122 pthread_mutex_init(&mMutex, &attr); in Mutex()
125 pthread_mutex_init(&mMutex, NULL); in Mutex()
129 pthread_mutex_destroy(&mMutex); in ~Mutex()
132 return -pthread_mutex_lock(&mMutex); in lock()
135 pthread_mutex_unlock(&mMutex); in unlock()
138 return -pthread_mutex_trylock(&mMutex); in tryLock()
147 return -pthread_mutex_timedlock(&mMutex, &ts); in timedLock()
DCondition.h116 return -pthread_cond_wait(&mCond, &mutex.mMutex); in wait()
148 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts); in waitRelative()
/system/chre/platform/slpi/include/chre/target_platform/
Dmutex_base_impl.h25 qurt_mutex_init(&mMutex); in Mutex()
29 qurt_mutex_destroy(&mMutex); in ~Mutex()
33 qurt_mutex_lock(&mMutex); in lock()
37 return (qurt_mutex_try_lock(&mMutex) == 0); in try_lock()
41 qurt_mutex_unlock(&mMutex); in unlock()
Dmutex_base.h34 qurt_mutex_t mMutex;
Dcondition_variable_impl.h37 qurt_cond_wait(&mConditionVariable, &mutex.mMutex); in wait()
/system/chre/util/include/chre/util/
Dfixed_size_blocking_queue_impl.h30 LockGuard<Mutex> lock(mMutex); in push()
41 LockGuard<Mutex> lock(mMutex); in pop()
43 mConditionVariable.wait(mMutex); in pop()
53 LockGuard<Mutex> lock(mMutex); in empty()
Dlock_guard_impl.h26 : mMutex(mutex) { in LockGuard()
27 mMutex.lock(); in LockGuard()
32 mMutex.unlock(); in ~LockGuard()
Dsynchronized_memory_pool_impl.h29 LockGuard<Mutex> lock(mMutex); in allocate()
36 LockGuard<Mutex> lock(mMutex); in deallocate()
Dlock_guard.h44 MutexType& mMutex;
Dfixed_size_blocking_queue.h61 Mutex mMutex;
Dsynchronized_memory_pool.h56 Mutex mMutex;
/system/chre/platform/linux/include/chre/target_platform/
Dmutex_base_impl.h29 mMutex.lock(); in lock()
33 return mMutex.try_lock(); in try_lock()
37 mMutex.unlock(); in unlock()
Dmutex_base.h27 std::mutex mMutex; member
/system/libhidl/transport/include/hidl/
DConcurrentMap.h34 std::unique_lock<std::mutex> _lock(mMutex); in set()
40 std::unique_lock<std::mutex> _lock(mMutex); in get()
49 std::unique_lock<std::mutex> _lock(mMutex); in erase()
54 mutable std::mutex mMutex;
/system/libhidl/base/include/hidl/
DSynchronizedQueue.h50 std::mutex mMutex; member
61 std::unique_lock<std::mutex> lock(mMutex); in wait_pop()
77 std::unique_lock<std::mutex> lock(mMutex); in push()
92 std::unique_lock<std::mutex> lock(mMutex); in size()
/system/chre/core/
Dtimer_pool.cc35 LockGuard<Mutex> lock(mMutex); in setTimer()
68 LockGuard<Mutex> lock(mMutex); in cancelTimer()
158 LockGuard<Mutex> lock(mMutex); in onSystemTimerCallback()
/system/nfc/src/include/
DNfcAdaptation.h43 operator pthread_mutex_t*() { return &mMutex; }
46 pthread_mutex_t mMutex;
/system/nfc/src/adaptation/
DNfcAdaptation.cpp642 pthread_mutex_init(&mMutex, &mutexAttr); in ThreadMutex()
655 ThreadMutex::~ThreadMutex() { pthread_mutex_destroy(&mMutex); } in ~ThreadMutex()
666 void ThreadMutex::lock() { pthread_mutex_lock(&mMutex); } in lock()
677 void ThreadMutex::unlock() { pthread_mutex_unlock(&mMutex); } in unlock()
/system/core/libutils/
DRefBase.cpp262 Mutex::Autolock _l(mMutex); in printRefs()
305 AutoMutex _l(mMutex); in addRef()
324 AutoMutex _l(mMutex); in removeRef()
356 AutoMutex _l(mMutex); in renameRefsId()
384 mutable Mutex mMutex; member in android::RefBase::weakref_impl
/system/chre/core/include/chre/core/
Dtimer_pool.h121 Mutex mMutex; variable
Devent_loop_manager.h196 Mutex mMutex;
/system/libhidl/transport/
DServiceManagement.cpp392 std::unique_lock<std::mutex> lock(mMutex); in onRegistration()
406 std::unique_lock<std::mutex> lock(mMutex); in wait()
423 std::mutex mMutex; member

12