Searched defs:mutex (Results 1 - 7 of 7) sorted by relevance

/system/bt/service/common/bluetooth/util/
H A Datomic_string.cpp26 std::mutex* mutex = const_cast<std::mutex*>(&lock_); local
27 std::lock_guard<std::mutex> lock(*mutex);
32 std::lock_guard<std::mutex> lock(lock_);
/system/core/adb/sysdeps/
H A Dmutex.h27 // The prebuilt version of mingw we use doesn't support mutex or recursive_mutex.
32 #include <mutex>
64 class mutex { class in namespace:std
66 mutex() { function in class:std::mutex
69 ~mutex() {
75 fatal("non-recursive mutex locked reentrantly");
81 fatal("non-recursive mutex unlock resulted in unexpected lock count: %d", lock_count_);
/system/core/include/utils/
H A DCondition.h39 * Condition variables are paired up with mutexes. Lock the mutex,
41 * or unlock the mutex and continue. All threads calling wait() must
42 * use the same mutex for a given Condition.
59 // Wait on the condition variable. Lock the mutex before calling.
60 status_t wait(Mutex& mutex);
62 status_t waitRelative(Mutex& mutex, nsecs_t reltime);
105 inline status_t Condition::wait(Mutex& mutex) { argument
106 return -pthread_cond_wait(&mCond, &mutex.mMutex);
108 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { argument
113 return -pthread_cond_timedwait_relative_np(&mCond, &mutex
[all...]
H A DMutex.h40 * doesn't build for Win32 should use std::mutex and std::lock_guard instead.
42 * Simple mutex class. The implementation is system-dependent.
44 * The mutex must be unlocked by the thread that locked it. They are not
59 // lock or unlock the mutex
67 // lock the mutex, but don't wait longer than timeoutMilliseconds.
76 // Manages the mutex automatically. It'll be locked when Autolock is
80 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } argument
81 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLoc argument
[all...]
/system/extras/libfec/
H A Dfec_private.h104 pthread_mutex_t mutex; member in struct:fec_handle
/system/bt/udrv/ulinux/
H A Duipc.c63 #define UIPC_LOCK() /*BTIF_TRACE_EVENT(" %s lock", __FUNCTION__);*/ pthread_mutex_lock(&uipc_main.mutex);
64 #define UIPC_UNLOCK() /*BTIF_TRACE_EVENT("%s unlock", __FUNCTION__);*/ pthread_mutex_unlock(&uipc_main.mutex);
92 pthread_mutex_t mutex; member in struct:__anon1307
223 pthread_mutex_init(&uipc_main.mutex, &attr);
/system/core/adb/
H A Dusb_linux.cpp39 #include <mutex>
75 std::mutex mutex; member in struct:usb_handle
84 static auto& g_usb_handles_mutex = *new std::mutex();
88 std::lock_guard<std::mutex> lock(g_usb_handles_mutex);
100 std::lock_guard<std::mutex> lock(g_usb_handles_mutex);
297 std::unique_lock<std::mutex> lock(h->mutex);
336 std::unique_lock<std::mutex> lock(h->mutex);
[all...]

Completed in 4477 milliseconds