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.cpp341 Mutex::Mutex()
351 Mutex::Mutex(const char* /*name*/)
362 Mutex::Mutex(int /*type*/, const char* /*name*/)
373 Mutex::~Mutex()
378 status_t Mutex::lock()
385 void Mutex::unlock()
391 status_t Mutex::tryLock()
547 status_t Condition::wait(Mutex& mutex)
555 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime)
668 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()
121 LockGuard<Mutex> lock(mMutex); in updateCalibration()
/system/chre/core/
Devent_loop.cc62 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in findNanoappInstanceIdByAppId()
77 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in forEachNanoapp()
163 LockGuard<Mutex> lock(mNanoappsLock); in startNanoapp()
181 LockGuard<Mutex> lock(mNanoappsLock); in startNanoapp()
297 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in findNanoappByInstanceId()
303 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in populateNanoappInfoForAppId()
310 ConditionalLockGuard<Mutex> lock(mNanoappsLock, !inEventLoopThread()); in populateNanoappInfoForInstanceId()
456 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/libhwbinder/
DStatic.cpp76 Mutex& gProcessMutex = *new Mutex;
/system/libhwbinder/include/hwbinder/
DStatic.h32 extern Mutex& gProcessMutex;
/system/libhidl/libhidlcache/
DHidlCache.h29 using Mutex = std::mutex; variable
30 using Lock = std::lock_guard<Mutex>;
67 Mutex mMutex;
/system/core/storaged/
Dstoraged_info.cpp77 Mutex::Autolock _l(si_mutex); in load_perf_history_proto()
127 Mutex::Autolock _l(si_mutex); in refresh()
156 Mutex::Autolock _l(si_mutex); in update_perf_history()
206 Mutex::Autolock _l(si_mutex); in get_perf_history()
236 Mutex::Autolock _l(si_mutex); in get_recent_perf()

12