Searched refs:mutex (Results 1 - 6 of 6) sorted by relevance

/bionic/libc/bionic/
H A Dpthread_mutex.cpp47 /* a mutex attribute holds the following fields
50 * 0-3 type type of mutex
101 * mutexes but won't cleanup if a process dies with the mutex held.
116 /* a mutex contains a state value and a owner_tid.
120 * 15-14 type mutex type
125 * The owner_tid is used only in recursive and errorcheck mutex to hold the mutex owner thread tid.
145 * These are used to form or modify the bit pattern of a given mutex value
169 // Return true iff the mutex is unlocked.
172 // Return true iff the mutex i
242 pthread_mutex_internal_t* mutex = __get_internal_mutex(mutex_interface); local
275 __pthread_normal_mutex_trylock(pthread_mutex_internal_t* mutex, uint16_t shared) argument
300 __pthread_normal_mutex_lock(pthread_mutex_internal_t* mutex, uint16_t shared, bool use_realtime_clock, const timespec* abs_timeout_or_null) argument
339 __pthread_normal_mutex_unlock(pthread_mutex_internal_t* mutex, uint16_t shared) argument
379 __recursive_increment(pthread_mutex_internal_t* mutex, uint16_t old_state) argument
395 __recursive_or_errorcheck_mutex_wait( pthread_mutex_internal_t* mutex, uint16_t shared, uint16_t old_state, bool use_realtime_clock, const timespec* abs_timeout) argument
421 __pthread_mutex_lock_with_timeout(pthread_mutex_internal_t* mutex, bool use_realtime_clock, const timespec* abs_timeout_or_null) argument
510 pthread_mutex_internal_t* mutex = __get_internal_mutex(mutex_interface); local
531 pthread_mutex_internal_t* mutex = __get_internal_mutex(mutex_interface); local
575 pthread_mutex_internal_t* mutex = __get_internal_mutex(mutex_interface); local
635 pthread_mutex_internal_t* mutex = __get_internal_mutex(mutex_interface); local
[all...]
H A Dpthread_cond.cpp46 // XXX after unlocking the mutex and before waiting, and if other
173 static int __pthread_cond_timedwait(pthread_cond_internal_t* cond, pthread_mutex_t* mutex, argument
181 pthread_mutex_unlock(mutex);
184 pthread_mutex_lock(mutex);
200 int pthread_cond_wait(pthread_cond_t* cond_interface, pthread_mutex_t* mutex) { argument
202 return __pthread_cond_timedwait(cond, mutex, false, nullptr);
205 int pthread_cond_timedwait(pthread_cond_t *cond_interface, pthread_mutex_t * mutex, argument
209 return __pthread_cond_timedwait(cond, mutex, cond->use_realtime_clock(), abstime);
215 pthread_mutex_t* mutex,
218 return __pthread_cond_timedwait(__get_internal_cond(cond_interface), mutex, fals
214 pthread_cond_timedwait_monotonic(pthread_cond_t* cond_interface, pthread_mutex_t* mutex, const timespec* abs_timeout) argument
221 pthread_cond_timedwait_monotonic_np(pthread_cond_t* cond_interface, pthread_mutex_t* mutex, const timespec* abs_timeout) argument
227 pthread_cond_timedwait_relative_np(pthread_cond_t* cond_interface, pthread_mutex_t* mutex, const timespec* rel_timeout) argument
239 pthread_cond_timeout_np(pthread_cond_t* cond_interface, pthread_mutex_t* mutex, unsigned ms) argument
[all...]
/bionic/benchmarks/
H A Dpthread_benchmark.cpp69 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; local
72 pthread_mutex_lock(&mutex);
73 pthread_mutex_unlock(&mutex);
79 pthread_mutex_t mutex = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP; local
82 pthread_mutex_lock(&mutex);
83 pthread_mutex_unlock(&mutex);
89 pthread_mutex_t mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; local
92 pthread_mutex_lock(&mutex);
93 pthread_mutex_unlock(&mutex);
/bionic/libc/malloc_debug/
H A DMapData.h34 #include <mutex>
72 std::mutex m_;
H A DMapData.cpp149 std::lock_guard<std::mutex> lock(m_);
/bionic/tests/
H A Dpthread_test.cpp309 pthread_mutex_t mutex; member in struct:TestBug37410
314 ASSERT_EQ(0, pthread_mutex_init(&data.mutex, NULL));
315 ASSERT_EQ(0, pthread_mutex_lock(&data.mutex));
321 ASSERT_EQ(0, pthread_mutex_lock(&data.mutex));
322 ASSERT_EQ(0, pthread_mutex_unlock(&data.mutex));
333 pthread_mutex_unlock(&data->mutex);
1118 pthread_mutex_t mutex; member in class:pthread_CondWakeupTest
1129 std::function<int (pthread_cond_t* cond, pthread_mutex_t* mutex)> wait_function;
1133 ASSERT_EQ(0, pthread_mutex_init(&mutex, nullptr));
1144 void StartWaitingThread(std::function<int (pthread_cond_t* cond, pthread_mutex_t* mutex)> wait_functio
1217 pthread_mutex_t mutex; local
1724 pthread_mutex_t* mutex = reinterpret_cast<pthread_mutex_t*>( local
[all...]

Completed in 7807 milliseconds