Home
last modified time | relevance | path

Searched refs:ConditionalLockGuard (Results 1 – 4 of 4) sorted by relevance

/system/chre/util/tests/
Dconditional_lock_guard_test.cc21 using chre::ConditionalLockGuard;
43 TEST(ConditionalLockGuard, LockUnlock) { in TEST() argument
48 ConditionalLockGuard<MockMutex> lock(mutex, true); in TEST()
55 TEST(ConditionalLockGuard, DontLock) { in TEST() argument
60 ConditionalLockGuard<MockMutex> lock(mutex, false); in TEST()
/system/chre/util/include/chre/util/
Dconditional_lock_guard_impl.h25 ConditionalLockGuard<MutexType>::ConditionalLockGuard(MutexType &mutex, in ConditionalLockGuard() function
34 ConditionalLockGuard<MutexType>::~ConditionalLockGuard() { in ~ConditionalLockGuard()
Dconditional_lock_guard.h29 class ConditionalLockGuard : public NonCopyable {
34 ConditionalLockGuard(MutexType &mutex, bool shouldLock);
39 ~ConditionalLockGuard();
/system/chre/core/
Devent_loop.cc67 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in findNanoappInstanceIdByAppId()
82 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in forEachNanoapp()
329 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in findNanoappByInstanceId()
335 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in populateNanoappInfoForAppId()
342 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in populateNanoappInfoForInstanceId()