/system/core/libutils/include/utils/ |
D | Mutex.h | 94 class CAPABILITY("mutex") Mutex { 101 Mutex(); 102 explicit Mutex(const char* name); 103 explicit Mutex(int type, const char* name = nullptr); 104 ~Mutex(); 132 inline explicit Autolock(Mutex& mutex) ACQUIRE(mutex) : mLock(mutex) { mLock.lock(); } in Autolock() 133 inline explicit Autolock(Mutex* mutex) ACQUIRE(mutex) : mLock(*mutex) { mLock.lock(); } in Autolock() 137 Mutex& mLock; 147 Mutex(const Mutex&); 148 Mutex& operator=(const Mutex&); [all …]
|
D | Singleton.h | 52 Mutex::Autolock _l(sLock); in getInstance() 62 Mutex::Autolock _l(sLock); in hasInstance() 73 static Mutex sLock; 91 template<> ::android::Mutex \ 92 (::android::Singleton< TYPE >::sLock)(::android::Mutex::PRIVATE); \
|
D | Condition.h | 69 status_t wait(Mutex& mutex); 71 status_t waitRelative(Mutex& mutex, nsecs_t reltime); 117 inline status_t Condition::wait(Mutex& mutex) { in wait() 120 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { in waitRelative()
|
/system/chre/platform/linux/include/chre/target_platform/ |
D | mutex_base_impl.h | 24 inline Mutex::Mutex() {} in Mutex() function 26 inline Mutex::~Mutex() {} in ~Mutex() 28 inline void Mutex::lock() { in lock() 32 inline bool Mutex::try_lock() { in try_lock() 36 inline void Mutex::unlock() { in unlock()
|
D | condition_variable_impl.h | 32 inline void ConditionVariable::wait(Mutex& mutex) { in wait() 36 inline bool ConditionVariable::wait_for(Mutex& mutex, Nanoseconds timeout) { in wait_for()
|
/system/chre/platform/slpi/include/chre/target_platform/ |
D | mutex_base_impl.h | 24 inline Mutex::Mutex() { in Mutex() function 28 inline Mutex::~Mutex() { in ~Mutex() 32 inline void Mutex::lock() { in lock() 36 inline bool Mutex::try_lock() { in try_lock() 40 inline void Mutex::unlock() { in unlock()
|
D | condition_variable_impl.h | 39 inline void ConditionVariable::wait(Mutex& mutex) { in wait() 45 inline bool ConditionVariable::wait_for(Mutex& mutex, Nanoseconds timeout) { in wait_for()
|
/system/core/libutils/ |
D | Mutex_test.cpp | 21 static android::Mutex mLock; 28 TEST(Mutex, compile) { in TEST() argument 29 android::Mutex::Autolock _l(mLock); in TEST() 34 TEST(Mutex, tryLock) { in TEST() argument 42 TEST(Mutex, timedLock) { in TEST() argument
|
D | Threads.cpp | 356 Mutex::Mutex() 366 Mutex::Mutex(const char* /*name*/) 377 Mutex::Mutex(int /*type*/, const char* /*name*/) 388 Mutex::~Mutex() 393 status_t Mutex::lock() 400 void Mutex::unlock() 406 status_t Mutex::tryLock() 562 status_t Condition::wait(Mutex& mutex) 570 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) 683 Mutex::Autolock _l(mLock); in run() [all …]
|
/system/chre/util/include/chre/util/ |
D | fixed_size_blocking_queue_impl.h | 30 LockGuard<Mutex> lock(mMutex); in push() 43 LockGuard<Mutex> lock(mMutex); in push() 54 LockGuard<Mutex> lock(mMutex); in pop() 66 LockGuard<Mutex> lock(mMutex); in empty() 72 LockGuard<Mutex> lock(mMutex); in size() 78 LockGuard<Mutex> lock(mMutex); in remove() 85 LockGuard<Mutex> lock(mMutex); 92 LockGuard<Mutex> lock(mMutex);
|
D | synchronized_memory_pool_impl.h | 29 LockGuard<Mutex> lock(mMutex); in allocate() 36 LockGuard<Mutex> lock(mMutex); in deallocate() 42 LockGuard<Mutex> lock(mMutex); in getFreeBlockCount()
|
D | synchronized_memory_pool.h | 61 Mutex mMutex;
|
/system/chre/platform/include/chre/platform/ |
D | mutex.h | 31 class Mutex : public MutexBase, 37 Mutex(); 42 ~Mutex();
|
D | condition_variable.h | 60 void wait(Mutex& mutex); 71 bool wait_for(Mutex& mutex, Nanoseconds timeout);
|
/system/chre/platform/slpi/smgr/ |
D | smr_helper.cc | 45 LockGuard<Mutex> lock(mMutex); in releaseSync() 77 LockGuard<Mutex> lock(mMutex); in waitForService() 151 LockGuard<Mutex> lock(mMutex); in sendReqSyncUntyped() 179 LockGuard<Mutex> lock(mMutex); in handleResp() 200 LockGuard<Mutex> lock(mMutex); in prepareForWait() 207 LockGuard<Mutex> lock(obj->mMutex); in smrReleaseCb() 225 LockGuard<Mutex> lock(obj->mMutex); in smrWaitForServiceCb()
|
/system/chre/platform/slpi/ |
D | init.cc | 47 using chre::Mutex; 86 Mutex gThreadMutex; 160 LockGuard<Mutex> lock(gThreadMutex); in chre_slpi_start_thread() 234 LockGuard<Mutex> lock(gThreadMutex); in chre_slpi_stop_thread() 277 LockGuard<Mutex> lock(gThreadMutex); in chre_slpi_initialize_reverse_monitor()
|
/system/tools/hidl/test/hidl_test/ |
D | FooCallback.cpp | 36 Mutex::Autolock lock(mLock); in heyItsYou() 52 Mutex::Autolock lock(mLock); in heyItsYouIsntIt() 68 Mutex::Autolock lock(mLock); in heyItsTheMeaningOfLife() 82 Mutex::Autolock lock(mLock); in reportResults() 115 Mutex::Autolock lock(mLock); in youBlockedMeFor()
|
/system/chre/platform/slpi/see/ |
D | island_vote_client.cc | 53 LockGuard<Mutex> lock(mMutex); in voteBigImage() 70 LockGuard<Mutex> lock(mMutex); in incrementBigImageRefCount() 88 LockGuard<Mutex> lock(mMutex); in decrementBigImageRefCount()
|
D | see_cal_helper.cc | 32 LockGuard<Mutex> lock(mMutex); in applyCalibration() 58 LockGuard<Mutex> lock(mMutex); in getBias() 146 LockGuard<Mutex> lock(mMutex); in updateCalibration()
|
/system/chre/core/ |
D | event_loop.cc | 64 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in findNanoappInstanceIdByAppId() 79 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in forEachNanoapp() 165 LockGuard<Mutex> lock(mNanoappsLock); in startNanoapp() 183 LockGuard<Mutex> lock(mNanoappsLock); in startNanoapp() 303 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in findNanoappByInstanceId() 309 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in populateNanoappInfoForAppId() 316 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in populateNanoappInfoForInstanceId() 469 LockGuard<Mutex> lock(mNanoappsLock); in unloadNanoappAtIndex()
|
D | timer_pool.cc | 50 LockGuard<Mutex> lock(mMutex); in setTimer() 80 LockGuard<Mutex> lock(mMutex); in cancelTimer() 215 LockGuard<Mutex> lock(mMutex); in handleExpiredTimersAndScheduleNext()
|
/system/chre/pal/tests/src/ |
D | gnss_pal_impl_test.cc | 187 chre::LockGuard<chre::Mutex> lock(mutex_); in locationStatusChangeCallback() 195 chre::LockGuard<chre::Mutex> lock(mutex_); in locationEventCallback() 212 chre::LockGuard<chre::Mutex> lock(mutex_); in measurementStatusChangeCallback() 220 chre::LockGuard<chre::Mutex> lock(mutex_); in measurementEventCallback() 251 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_F() 290 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_F()
|
D | wifi_pal_impl_test.cc | 150 chre::LockGuard<chre::Mutex> lock(mutex_); in scanMonitorStatusChangeCallback() 163 chre::LockGuard<chre::Mutex> lock(mutex_); in scanResponseCallback() 173 chre::LockGuard<chre::Mutex> lock(mutex_); in scanEventCallback() 222 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_F() 272 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_F()
|
/system/core/storaged/ |
D | storaged_info.cpp | 74 Mutex::Autolock _l(si_mutex); in load_perf_history_proto() 124 Mutex::Autolock _l(si_mutex); in refresh() 153 Mutex::Autolock _l(si_mutex); in update_perf_history() 203 Mutex::Autolock _l(si_mutex); in get_perf_history() 233 Mutex::Autolock _l(si_mutex); in get_recent_perf()
|
/system/chre/platform/slpi/include/chre/platform/slpi/see/ |
D | island_vote_client.h | 90 Mutex mMutex;
|