/system/core/libutils/ |
D | Mutex_test.cpp | 21 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()
|
D | Threads.cpp | 659 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 …]
|
D | Looper.cpp | 73 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/ |
D | TcpSocketMonitor.h | 90 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);
|
D | TcpSocketMonitor.cpp | 105 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()
|
D | IptablesRestoreController.h | 87 std::mutex mLock; variable
|
/system/core/libutils/include/utils/ |
D | RWLock.h | 62 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;
|
D | Mutex.h | 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() 134 inline ~Autolock() RELEASE() { mLock.unlock(); } in RELEASE() 137 Mutex& mLock;
|
D | Thread.h | 100 mutable Mutex mLock; variable
|
/system/tools/hidl/test/hidl_test/ |
D | FooCallback.cpp | 22 : 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()
|
D | FooCallback.h | 33 Mutex mLock; member
|
/system/libhwbinder/ |
D | BpHwBinder.cpp | 133 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()
|
D | ProcessState.cpp | 115 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()
|
D | Binder.cpp | 68 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()
|
D | BufferedTextOutput.cpp | 165 AutoMutex _l(mLock); in print() 228 AutoMutex _l(mLock); in moveIndent() 236 AutoMutex _l(mLock); in pushBundle() 243 AutoMutex _l(mLock); in popBundle()
|
D | BufferedTextOutput.h | 62 Mutex mLock; variable
|
/system/core/libpixelflinger/codeflinger/ |
D | CodeCache.cpp | 158 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/ |
D | SimpleLog.h | 138 std::lock_guard<std::mutex> guard(mLock); in logs() 164 std::lock_guard<std::mutex> guard(mLock); 203 mutable std::mutex mLock;
|
D | ErrorLog.h | 71 std::lock_guard<std::mutex> guard(mLock); in log() 100 std::lock_guard<std::mutex> guard(mLock); 185 mutable std::mutex mLock; // monitor mutex
|
D | PowerLog.h | 91 mutable std::mutex mLock; // monitor mutex
|
/system/vold/ |
D | VolumeManager.h | 51 std::mutex& getLock() { return mLock; } in getLock() 144 std::mutex mLock; variable
|
/system/netd/libnetdutils/ |
D | Log.cpp | 188 std::shared_lock<std::shared_mutex> guard(mLock); in forEachEntry() 210 std::lock_guard guard(mLock); in record()
|
/system/media/audio_utils/ |
D | PowerLog.cpp | 66 std::lock_guard<std::mutex> guard(mLock); in log() 112 std::lock_guard<std::mutex> guard(mLock); in dumpToString()
|
/system/libhwbinder/include/hwbinder/ |
D | BpHwBinder.h | 112 mutable Mutex mLock; variable
|
D | ProcessState.h | 125 mutable Mutex mLock; // protects everything below. variable
|