Home
last modified time | relevance | path

Searched refs:Mutex (Results 1 – 25 of 50) sorted by relevance

12

/system/core/libutils/include/utils/
DMutex.h94 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 …]
DSingleton.h52 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); \
DCondition.h69 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/
Dmutex_base_impl.h24 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()
Dcondition_variable_impl.h32 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/
Dmutex_base_impl.h24 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()
Dcondition_variable_impl.h39 inline void ConditionVariable::wait(Mutex& mutex) { in wait()
45 inline bool ConditionVariable::wait_for(Mutex& mutex, Nanoseconds timeout) { in wait_for()
/system/core/libutils/
DMutex_test.cpp21 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
DThreads.cpp356 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/
Dfixed_size_blocking_queue_impl.h30 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);
Dsynchronized_memory_pool_impl.h29 LockGuard<Mutex> lock(mMutex); in allocate()
36 LockGuard<Mutex> lock(mMutex); in deallocate()
42 LockGuard<Mutex> lock(mMutex); in getFreeBlockCount()
Dsynchronized_memory_pool.h61 Mutex mMutex;
/system/chre/platform/include/chre/platform/
Dmutex.h31 class Mutex : public MutexBase,
37 Mutex();
42 ~Mutex();
Dcondition_variable.h60 void wait(Mutex& mutex);
71 bool wait_for(Mutex& mutex, Nanoseconds timeout);
/system/chre/platform/slpi/smgr/
Dsmr_helper.cc45 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/
Dinit.cc47 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/
DFooCallback.cpp36 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/
Disland_vote_client.cc53 LockGuard<Mutex> lock(mMutex); in voteBigImage()
70 LockGuard<Mutex> lock(mMutex); in incrementBigImageRefCount()
88 LockGuard<Mutex> lock(mMutex); in decrementBigImageRefCount()
Dsee_cal_helper.cc32 LockGuard<Mutex> lock(mMutex); in applyCalibration()
58 LockGuard<Mutex> lock(mMutex); in getBias()
146 LockGuard<Mutex> lock(mMutex); in updateCalibration()
/system/chre/core/
Devent_loop.cc64 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()
Dtimer_pool.cc50 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/
Dgnss_pal_impl_test.cc187 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()
Dwifi_pal_impl_test.cc150 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/
Dstoraged_info.cpp74 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/
Disland_vote_client.h90 Mutex mMutex;

12