Home
last modified time | relevance | path

Searched refs:mutex_ (Results 1 – 21 of 21) sorted by relevance

/system/extras/memory_replay/
DThread.cpp30 pthread_mutex_lock(&mutex_); in WaitForReady()
32 pthread_cond_wait(&cond_, &mutex_); in WaitForReady()
34 pthread_mutex_unlock(&mutex_); in WaitForReady()
38 pthread_mutex_lock(&mutex_); in WaitForPending()
40 pthread_cond_wait(&cond_, &mutex_); in WaitForPending()
42 pthread_mutex_unlock(&mutex_); in WaitForPending()
46 pthread_mutex_lock(&mutex_); in SetPending()
48 pthread_mutex_unlock(&mutex_); in SetPending()
53 pthread_mutex_lock(&mutex_); in ClearPending()
55 pthread_mutex_unlock(&mutex_); in ClearPending()
DThread.h46 pthread_mutex_t mutex_ = PTHREAD_MUTEX_INITIALIZER;
/system/logging/logd/
DLogBufferTest.h53 : LogWriter(0, true), mutex_(mutex ?: &logd_lock), msgs_(msgs), released_(released) {} in TestWriter()
56 auto lock = std::lock_guard{*mutex_}; in Write()
68 std::mutex* mutex_;
124 auto lock = std::lock_guard{mutex_}; in TestReaderThread()
126 new TestWriter(&read_log_messages_, &mutex_, &released_)); in TestReaderThread()
144 auto lock = std::lock_guard{mutex_}; in WaitForMessages()
153 auto lock = std::lock_guard{mutex_}; in read_log_messages()
159 std::mutex mutex_; variable
/system/media/audio_utils/include/audio_utils/
Dmutex.h1063 bool add_to_registry(const std::shared_ptr<ThreadInfo>& tminfo) EXCLUDES(mutex_) { in add_to_registry()
1065 std::lock_guard l(mutex_); in add_to_registry()
1074 bool remove_from_registry(pid_t tid) EXCLUDES(mutex_) { in remove_from_registry()
1076 std::lock_guard l(mutex_); in remove_from_registry()
1084 auto copy_map() EXCLUDES(mutex_) { in copy_map()
1085 std::lock_guard l(mutex_); in copy_map()
1090 auto copy_ordered_map() EXCLUDES(mutex_) { in copy_ordered_map()
1091 std::lock_guard l(mutex_); in copy_ordered_map()
1271 mutable std::mutex mutex_;
1272 std::unordered_map<pid_t, std::weak_ptr<ThreadInfo>> registry_ GUARDED_BY(mutex_);
[all …]
/system/unwinding/libunwindstack/
DThreadEntry.h48 mutex_.lock(); in Lock()
55 inline void Unlock() { mutex_.unlock(); } in Unlock()
65 std::mutex mutex_; variable
/system/chre/pal/tests/src/
Dgnss_pal_impl_test.cc193 chre::LockGuard<chre::Mutex> lock(mutex_); in locationStatusChangeCallback()
201 chre::LockGuard<chre::Mutex> lock(mutex_); in locationEventCallback()
218 chre::LockGuard<chre::Mutex> lock(mutex_); in measurementStatusChangeCallback()
226 chre::LockGuard<chre::Mutex> lock(mutex_); in measurementEventCallback()
239 waitSuccess = condVar_.wait_for(mutex_, timeoutNs); in waitForAsyncResponseAssertSuccess()
257 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_P()
268 waitSuccess = condVar_.wait_for(mutex_, kGnssEventTimeoutNs); in TEST_P()
297 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_P()
307 waitSuccess = condVar_.wait_for(mutex_, kGnssEventTimeoutNs); in TEST_P()
Dwifi_pal_impl_test.cc166 chre::LockGuard<chre::Mutex> lock(mutex_); in scanMonitorStatusChangeCallback()
179 chre::LockGuard<chre::Mutex> lock(mutex_); in scanResponseCallback()
189 chre::LockGuard<chre::Mutex> lock(mutex_); in scanEventCallback()
208 chre::LockGuard<chre::Mutex> lock(mutex_); in nanServiceIdentifierCallback()
257 waitSuccess = condVar_.wait_for(mutex_, timeoutNs); in waitForAsyncResponseAssertSuccess()
276 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_F()
294 waitSuccess = condVar_.wait_for(mutex_, kScanResultTimeoutNs); in TEST_F()
326 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_F()
/system/memory/lmkd/
Dreaper.cpp205 mutex_.lock(); in async_kill()
207 mutex_.unlock(); in async_kill()
217 mutex_.unlock(); in async_kill()
243 std::unique_lock<std::mutex> lock(mutex_); in dequeue_request()
255 std::scoped_lock<std::mutex> lock(mutex_); in request_complete()
260 std::scoped_lock<std::mutex> lock(mutex_); in notify_kill_failure()
Dreaper.h32 std::mutex mutex_;
/system/core/trusty/confirmationui/
DTrustyApp.h77 std::mutex mutex_; variable
87 std::lock_guard<std::mutex> lock(mutex_); in issueCmd()
119 std::lock_guard<std::mutex> lock(mutex_); in issueCmd()
/system/teeui/libteeui/src/
Devdev.cpp91 std::unique_lock<std::mutex> lock(mutex_); in addEventReceiver()
100 std::unique_lock<std::mutex> lock(mutex_); in addTimer()
109 std::unique_lock<std::mutex> lock(mutex_); in start()
116 std::unique_lock<std::mutex> lock(mutex_); in start()
160 std::unique_lock<std::mutex> lock(mutex_); in stop()
/system/core/libappfuse/
DFuseBridgeLoop.cc314 std::recursive_mutex FuseBridgeLoop::mutex_; member in android::fuse::FuseBridgeLoop
333 std::lock_guard<std::recursive_mutex> lock(mutex_); in AddBridge()
377 std::lock_guard<std::recursive_mutex> lock(mutex_); in Start()
391 mutex_.lock(); in Lock()
395 mutex_.unlock(); in Unlock()
/system/libbase/include/android-base/
Dproperties.h125 std::lock_guard<std::mutex> lock(mutex_);
137 std::mutex mutex_;
/system/chre/pal/tests/include/
Dgnss_pal_impl_test.h79 chre::Mutex mutex_; variable
Dwifi_pal_impl_test.h103 chre::Mutex mutex_; variable
/system/core/libappfuse/include/libappfuse/
DFuseBridgeLoop.h67 static std::recursive_mutex mutex_; variable
DFuseAppLoop.h64 std::mutex mutex_; variable
/system/teeui/libteeui/include/secure_input/
Devdev.h88 std::mutex mutex_; variable
/system/core/init/
Dproperty_service.cpp205 auto guard = std::lock_guard{mutex_}; in TriggerRestorecon()
216 auto lock = std::unique_lock{mutex_}; in ThreadFunction()
233 std::mutex mutex_; member in android::init::AsyncRestorecon
386 std::mutex mutex_; member in android::init::PersistWriteThread
1504 std::unique_lock<std::mutex> lock(mutex_); in Work()
1525 std::unique_lock<std::mutex> lock(mutex_); in Write()
/system/gsid/
Dgsi_tool.cpp150 std::unique_lock<std::mutex> lock(mutex_); in Worker()
218 std::lock_guard<std::mutex> guard(mutex_); in SignalDone()
227 std::mutex mutex_; member in ProgressBar
/system/core/fs_mgr/libsnapshot/
Dsnapshot_test.cpp886 std::unique_lock<std::mutex> ulock(mutex_); in MakeRequest()
895 std::unique_lock<std::mutex> ulock(mutex_); in WaitFulfill()
916 std::unique_lock<std::mutex> ulock(mutex_); in HandleRequests()
946 std::unique_lock<std::mutex> ulock(mutex_); in HandleRequests()
957 std::mutex mutex_; member in android::snapshot::LockTestConsumer