Home
last modified time | relevance | path

Searched refs:mLock (Results 1 – 25 of 31) sorted by relevance

12

/system/core/libutils/
DMutex_test.cpp21 static android::Mutex mLock; variable
22 static int i GUARDED_BY(mLock);
24 void modifyLockedVariable() REQUIRES(mLock) { in modifyLockedVariable()
29 android::Mutex::Autolock _l(mLock); in TEST()
35 if (mLock.tryLock() != 0) { in TEST()
38 mLock.unlock(); in TEST()
43 if (mLock.timedLock(1) != 0) { in TEST()
46 mLock.unlock(); in TEST()
DThreads.cpp659 mLock("Thread::mLock"), in Thread()
683 Mutex::Autolock _l(mLock); in run()
769 Mutex::Autolock _l(self->mLock); in _threadLoop()
795 Mutex::Autolock _l(mLock); in requestExit()
801 Mutex::Autolock _l(mLock); in requestExitAndWait()
814 mThreadExitedCondition.wait(mLock); in requestExitAndWait()
825 Mutex::Autolock _l(mLock); in join()
836 mThreadExitedCondition.wait(mLock); in join()
843 Mutex::Autolock _l(mLock); in isRunning()
851 Mutex::Autolock _l(mLock); in getTid()
[all …]
DLooper.cpp73 AutoMutex _l(mLock); in Looper()
245 mLock.lock(); in pollInner()
319 mLock.unlock(); in pollInner()
328 mLock.lock(); in pollInner()
339 mLock.unlock(); in pollInner()
451 AutoMutex _l(mLock); in addFd()
523 AutoMutex _l(mLock); in removeFd()
595 AutoMutex _l(mLock); in sendMessageAtTime()
626 AutoMutex _l(mLock); in removeMessages()
643 AutoMutex _l(mLock); in removeMessages()
/system/netd/server/
DTcpSocketMonitor.h90 const struct tcp_info *tcpinfo, uint32_t tcpinfoLen) REQUIRES(mLock);
93 std::mutex mLock; variable
100 milliseconds mNextSleepDurationMs GUARDED_BY(mLock);
102 time_point mLastPoll GUARDED_BY(mLock);
104 bool mIsSuspended GUARDED_BY(mLock);
106 bool mIsRunning GUARDED_BY(mLock);
110 std::unordered_map<uint64_t, SocketEntry> mSocketEntries GUARDED_BY(mLock);
114 std::unordered_map<uint32_t, TcpStats> mNetworkStats GUARDED_BY(mLock);
DTcpSocketMonitor.cpp105 std::lock_guard guard(mLock); in dump()
158 std::lock_guard guard(mLock); in setPollingInterval()
168 std::lock_guard guard(mLock); in resumePolling()
181 std::lock_guard guard(mLock); in suspendPolling()
193 std::lock_guard guard(mLock); in poll()
260 std::lock_guard guard(mLock); in waitForNextPoll()
265 std::unique_lock<std::mutex> ul(mLock); in waitForNextPoll()
274 std::lock_guard guard(mLock); in isRunning()
321 std::lock_guard guard(mLock); in TcpSocketMonitor()
337 std::lock_guard guard(mLock); in ~TcpSocketMonitor()
DIptablesRestoreController.h87 std::mutex mLock; variable
/system/core/libutils/include/utils/
DRWLock.h62 inline explicit AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); } in AutoRLock()
63 inline ~AutoRLock() { mLock.unlock(); } in ~AutoRLock()
65 RWLock& mLock;
70 inline explicit AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock(); } in AutoWLock()
71 inline ~AutoWLock() { mLock.unlock(); } in ~AutoWLock()
73 RWLock& mLock;
DMutex.h132 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()
134 inline ~Autolock() RELEASE() { mLock.unlock(); } in RELEASE()
137 Mutex& mLock;
DThread.h100 mutable Mutex mLock; variable
/system/tools/hidl/test/hidl_test/
DFooCallback.cpp22 : mLock{}, mCond{} { in FooCallback()
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()
91 ::android::status_t rc = mCond.waitRelative(mLock, leftToWaitNs); in reportResults()
115 Mutex::Autolock lock(mLock); in youBlockedMeFor()
DFooCallback.h33 Mutex mLock; member
/system/libhwbinder/
DBpHwBinder.cpp133 AutoMutex _l(mLock); in linkToDeath()
159 AutoMutex _l(mLock); in unlinkToDeath()
198 mLock.lock(); in sendObituary()
208 mLock.unlock(); in sendObituary()
244 AutoMutex _l(mLock); in attachObject()
251 AutoMutex _l(mLock); in findObject()
257 AutoMutex _l(mLock); in detachObject()
297 mLock.lock(); in onLastStrongRef()
307 mLock.unlock(); in onLastStrongRef()
DProcessState.cpp115 AutoMutex _l(mLock); in setContextObject()
121 mLock.lock(); in getContextObject()
124 mLock.unlock(); in getContextObject()
157 AutoMutex _l(mLock); in startThreadPool()
174 AutoMutex _l(mLock); in becomeContextManager()
283 AutoMutex _l(mLock); in getStrongProxyForHandle()
313 AutoMutex _l(mLock); in getWeakProxyForHandle()
342 AutoMutex _l(mLock); in expungeHandle()
395 AutoMutex _l(mLock); in setThreadPoolConfiguration()
DBinder.cpp68 Mutex mLock; member in android::hardware::BHwBinder::Extras
150 AutoMutex _l(e->mLock); in attachObject()
159 AutoMutex _l(e->mLock); in findObject()
168 AutoMutex _l(e->mLock); in detachObject()
DBufferedTextOutput.cpp165 AutoMutex _l(mLock); in print()
228 AutoMutex _l(mLock); in moveIndent()
236 AutoMutex _l(mLock); in pushBundle()
243 AutoMutex _l(mLock); in popBundle()
DBufferedTextOutput.h62 Mutex mLock; variable
/system/core/libpixelflinger/codeflinger/
DCodeCache.cpp158 pthread_mutex_init(&mLock, 0); in CodeCache()
163 pthread_mutex_destroy(&mLock); in ~CodeCache()
168 pthread_mutex_lock(&mLock); in lookup()
176 pthread_mutex_unlock(&mLock); in lookup()
183 pthread_mutex_lock(&mLock); in cache()
211 pthread_mutex_unlock(&mLock); in cache()
/system/media/audio_utils/include/audio_utils/
DSimpleLog.h138 std::lock_guard<std::mutex> guard(mLock); in logs()
164 std::lock_guard<std::mutex> guard(mLock);
203 mutable std::mutex mLock;
DErrorLog.h71 std::lock_guard<std::mutex> guard(mLock); in log()
100 std::lock_guard<std::mutex> guard(mLock);
185 mutable std::mutex mLock; // monitor mutex
DPowerLog.h91 mutable std::mutex mLock; // monitor mutex
/system/vold/
DVolumeManager.h51 std::mutex& getLock() { return mLock; } in getLock()
144 std::mutex mLock; variable
/system/netd/libnetdutils/
DLog.cpp188 std::shared_lock<std::shared_mutex> guard(mLock); in forEachEntry()
210 std::lock_guard guard(mLock); in record()
/system/media/audio_utils/
DPowerLog.cpp66 std::lock_guard<std::mutex> guard(mLock); in log()
112 std::lock_guard<std::mutex> guard(mLock); in dumpToString()
/system/libhwbinder/include/hwbinder/
DBpHwBinder.h112 mutable Mutex mLock; variable
DProcessState.h125 mutable Mutex mLock; // protects everything below. variable

12