/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 | 658 mLock("Thread::mLock"), in Thread() 682 Mutex::Autolock _l(mLock); in run() 768 Mutex::Autolock _l(self->mLock); in _threadLoop() 794 Mutex::Autolock _l(mLock); in requestExit() 800 Mutex::Autolock _l(mLock); in requestExitAndWait() 813 mThreadExitedCondition.wait(mLock); in requestExitAndWait() 824 Mutex::Autolock _l(mLock); in join() 835 mThreadExitedCondition.wait(mLock); in join() 842 Mutex::Autolock _l(mLock); in isRunning() 850 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/hardware/interfaces/suspend/1.0/default/ |
D | WakeupList.h | 43 void evict() REQUIRES(mLock); 44 void insert(WakeupInfo entry) REQUIRES(mLock); 45 void erase(std::list<WakeupInfo>::iterator entry) REQUIRES(mLock); 48 mutable std::mutex mLock; variable 49 std::list<WakeupInfo> mWakeups GUARDED_BY(mLock); 50 std::unordered_map<std::string, std::list<WakeupInfo>::iterator> mLookupTable GUARDED_BY(mLock);
|
D | WakeupList.cpp | 30 std::scoped_lock lock(mLock); in getWakeupStats() 44 std::scoped_lock lock(mLock); in update()
|
/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/chre/platform/shared/ |
D | log_buffer.cc | 55 LockGuard<Mutex> lockGuard(mLock); in handleLogVa() 94 LockGuard<Mutex> lock(mLock); in copyLogs() 99 LockGuard<Mutex> lock(mLock); in logWouldCauseOverflow() 105 LockGuard<Mutex> lockGuardOther(buffer.mLock); in transferTo() 109 LockGuard<Mutex> lockGuardThis(mLock); in transferTo() 127 LockGuard<Mutex> lock(mLock); in updateNotificationSetting() 134 LockGuard<Mutex> lock(mLock); in reset() 143 LockGuard<Mutex> lockGuard(mLock); in getBufferSize() 148 LockGuard<Mutex> lockGuard(mLock); in getNumLogsDropped()
|
/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 | Binder.cpp | 74 Mutex mLock; member in android::hardware::BHwBinder::Extras 169 AutoMutex _l(e->mLock); in attachObject() 178 AutoMutex _l(e->mLock); in findObject() 187 AutoMutex _l(e->mLock); in detachObject()
|
D | ProcessState.cpp | 106 AutoMutex _l(mLock); in startThreadPool() 122 AutoMutex _l(mLock); in becomeContextManager() 223 AutoMutex _l(mLock); in getStrongProxyForHandle() 253 AutoMutex _l(mLock); in getWeakProxyForHandle() 282 AutoMutex _l(mLock); in expungeHandle() 335 AutoMutex _l(mLock); in setThreadPoolConfiguration()
|
D | BufferedTextOutput.cpp | 148 AutoMutex _l(mLock); in print() 211 AutoMutex _l(mLock); in moveIndent() 219 AutoMutex _l(mLock); in pushBundle() 226 AutoMutex _l(mLock); in popBundle()
|
D | BufferedTextOutput.h | 59 Mutex mLock; variable
|
/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 | 96 mutable std::mutex mLock; // monitor mutex
|
/system/chre/core/ |
D | sensor.cc | 112 LockGuard<Mutex> mLock(mSamplingStatusMutex); in getSamplingStatus() local 119 LockGuard<Mutex> mLock(mSamplingStatusMutex); in setSamplingStatus() local
|
/system/media/audio_utils/ |
D | PowerLog.cpp | 66 std::lock_guard<std::mutex> guard(mLock); in log() 113 std::lock_guard<std::mutex> guard(mLock); in dumpToString()
|
/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()
|