/bionic/tests/headers/posix/ |
D | pthread_h.c | 72 pthread_mutex_t m0 = PTHREAD_MUTEX_INITIALIZER; in pthread_h() 81 TYPE(pthread_mutex_t); in pthread_h() 122 …FUNCTION(pthread_cond_timedwait, int (*f)(pthread_cond_t*, pthread_mutex_t*, const struct timespec… in pthread_h() 123 FUNCTION(pthread_cond_wait, int (*f)(pthread_cond_t*, pthread_mutex_t*)); in pthread_h() 144 FUNCTION(pthread_mutex_consistent, int (*f)(pthread_mutex_t*)); in pthread_h() 146 FUNCTION(pthread_mutex_destroy, int (*f)(pthread_mutex_t*)); in pthread_h() 148 FUNCTION(pthread_mutex_getprioceiling, int (*f)(const pthread_mutex_t*, int*)); in pthread_h() 150 FUNCTION(pthread_mutex_init, int (*f)(pthread_mutex_t*, const pthread_mutexattr_t*)); in pthread_h() 151 FUNCTION(pthread_mutex_lock, int (*f)(pthread_mutex_t*)); in pthread_h() 153 FUNCTION(pthread_mutex_setprioceiling, int (*f)(pthread_mutex_t*, int, int*)); in pthread_h() [all …]
|
D | sys_types_h.c | 55 TYPE(pthread_mutex_t); in sys_types_h()
|
/bionic/libc/bionic/ |
D | pthread_cond.cpp | 184 static int __pthread_cond_timedwait(pthread_cond_internal_t* cond, pthread_mutex_t* mutex, in __pthread_cond_timedwait() 221 int pthread_cond_wait(pthread_cond_t* cond_interface, pthread_mutex_t* mutex) { in pthread_cond_wait() 226 int pthread_cond_timedwait(pthread_cond_t *cond_interface, pthread_mutex_t * mutex, in pthread_cond_timedwait() 234 pthread_mutex_t* mutex, in pthread_cond_timedwait_monotonic_np() 239 int pthread_cond_clockwait(pthread_cond_t* cond_interface, pthread_mutex_t* mutex, clockid_t clock, in pthread_cond_clockwait() 255 pthread_mutex_t* mutex, in pthread_cond_timedwait_monotonic() 265 pthread_mutex_t* mutex, in pthread_cond_timedwait_relative_np() 281 pthread_mutex_t* mutex, unsigned ms) { in pthread_cond_timeout_np()
|
D | pthread_mutex.cpp | 489 static_assert(sizeof(pthread_mutex_t) == sizeof(pthread_mutex_internal_t), 494 static_assert(alignof(pthread_mutex_t) == 4, 497 static inline pthread_mutex_internal_t* __get_internal_mutex(pthread_mutex_t* mutex_interface) { in __get_internal_mutex() 501 int pthread_mutex_init(pthread_mutex_t* mutex_interface, const pthread_mutexattr_t* attr) { in pthread_mutex_init() 800 static int __attribute__((noinline)) HandleUsingDestroyedMutex(pthread_mutex_t* mutex, in HandleUsingDestroyedMutex() 808 int pthread_mutex_lock(pthread_mutex_t* mutex_interface) { in pthread_mutex_lock() 842 int pthread_mutex_unlock(pthread_mutex_t* mutex_interface) { in pthread_mutex_unlock() 900 int pthread_mutex_trylock(pthread_mutex_t* mutex_interface) { in pthread_mutex_trylock() 950 extern "C" int pthread_mutex_lock_timeout_np(pthread_mutex_t* mutex_interface, unsigned ms) { in pthread_mutex_lock_timeout_np() 964 static int __pthread_mutex_timedlock(pthread_mutex_t* mutex_interface, bool use_realtime_clock, in __pthread_mutex_timedlock() [all …]
|
D | thread_private.cpp | 34 static pthread_mutex_t g_arc4_lock = PTHREAD_MUTEX_INITIALIZER;
|
D | heap_tagging.h | 41 extern pthread_mutex_t g_heap_tagging_lock;
|
D | malloc_common_dynamic.h | 46 extern pthread_mutex_t gGlobalsMutateLock;
|
D | heap_tagging.cpp | 105 pthread_mutex_t g_heap_tagging_lock = PTHREAD_MUTEX_INITIALIZER;
|
D | pthread_atfork.cpp | 113 static pthread_mutex_t g_atfork_list_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
D | dirent.cpp | 57 pthread_mutex_t mutex_;
|
/bionic/libc/private/ |
D | thread_private.h | 19 #define _THREAD_PRIVATE_MUTEX(name) static pthread_mutex_t __MUTEX_NAME(name) = PTHREAD_MUTEX_INITI… 24 #define _MUTEX_LOCK(l) pthread_mutex_lock((pthread_mutex_t*) l) 25 #define _MUTEX_UNLOCK(l) pthread_mutex_unlock((pthread_mutex_t*) l)
|
D | ScopedPthreadMutexLocker.h | 25 explicit ScopedPthreadMutexLocker(pthread_mutex_t* mu) : mu_(mu) { in ScopedPthreadMutexLocker() 34 pthread_mutex_t* mu_;
|
D | bionic_globals.h | 107 pthread_mutex_t abort_msg_lock = PTHREAD_MUTEX_INITIALIZER; 140 pthread_mutex_t crash_detail_page_lock = PTHREAD_MUTEX_INITIALIZER;
|
/bionic/libc/include/ |
D | pthread.h | 127 int pthread_cond_clockwait(pthread_cond_t* _Nonnull __cond, pthread_mutex_t* _Nonnull __mutex, cloc… 132 int pthread_cond_timedwait(pthread_cond_t* _Nonnull __cond, pthread_mutex_t* _Nonnull __mutex, cons… 143 int pthread_cond_timedwait_monotonic_np(pthread_cond_t* _Nonnull __cond, pthread_mutex_t* _Nonnull … 145 int pthread_cond_wait(pthread_cond_t* _Nonnull __cond, pthread_mutex_t* _Nonnull __mutex); 211 int pthread_mutex_clocklock(pthread_mutex_t* _Nonnull __mutex, clockid_t __clock, 213 int pthread_mutex_destroy(pthread_mutex_t* _Nonnull __mutex); 214 int pthread_mutex_init(pthread_mutex_t* _Nonnull __mutex, const pthread_mutexattr_t* _Nullable __at… 215 int pthread_mutex_lock(pthread_mutex_t* _Nonnull __mutex); 216 int pthread_mutex_timedlock(pthread_mutex_t* _Nonnull __mutex, const struct timespec* _Nullable __t… 227 int pthread_mutex_timedlock_monotonic_np(pthread_mutex_t* _Nonnull __mutex, const struct timespec* … [all …]
|
D | threads.h | 51 typedef pthread_mutex_t mtx_t;
|
/bionic/benchmarks/ |
D | pthread_benchmark.cpp | 69 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; in BM_pthread_mutex_lock() 80 pthread_mutex_t mutex = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP; in BM_pthread_mutex_lock_ERRORCHECK() 92 pthread_mutex_t mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; in BM_pthread_mutex_lock_RECURSIVE() 104 pthread_mutex_t mutex;
|
/bionic/tests/ |
D | pthread_test.cpp | 346 pthread_mutex_t mutex; 1550 pthread_mutex_t mutex; 1562 std::function<int (pthread_cond_t* cond, pthread_mutex_t* mutex)> wait_function; 1578 std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex)> wait_function) { in StartWaitingThread() 1591 std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* timeout)> in RunTimedTest() 1596 StartWaitingThread([&wait_function, this](pthread_cond_t* cond, pthread_mutex_t* mutex) { in RunTimedTest() 1604 void RunTimedTest(clockid_t clock, std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex, in RunTimedTest() 1607 RunTimedTest(clock, [clock, &wait_function](pthread_cond_t* cond, pthread_mutex_t* mutex, in RunTimedTest() 1635 StartWaitingThread([](pthread_cond_t* cond, pthread_mutex_t* mutex) { in TEST_F() 1644 StartWaitingThread([](pthread_cond_t* cond, pthread_mutex_t* mutex) { in TEST_F() [all …]
|
/bionic/libc/upstream-openbsd/android/ |
D | gdtoa_support.cpp | 19 __LIBC_HIDDEN__ pthread_mutex_t __dtoa_locks[] = { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIAL…
|
/bionic/libc/upstream-netbsd/android/include/ |
D | reentrant.h | 29 #define mutex_t pthread_mutex_t
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | quick_exit.c | 49 static pthread_mutex_t atexit_mutex = PTHREAD_MUTEX_INITIALIZER;
|
/bionic/libc/dns/resolv/ |
D | res_data.cpp | 50 static pthread_mutex_t mutex; 54 pthread_mutex_t GlobalStateAccessor::mutex = PTHREAD_MUTEX_INITIALIZER;
|
/bionic/libc/include/bits/ |
D | pthread_types.h | 78 } pthread_mutex_t; typedef
|
/bionic/linker/ |
D | linker_globals.h | 107 __LIBC_HIDDEN__ extern pthread_mutex_t g_dl_mutex;
|
D | linker_gdb_support.cpp | 43 static pthread_mutex_t g__r_debug_mutex = PTHREAD_MUTEX_INITIALIZER;
|
/bionic/libc/stdio/ |
D | local.h | 132 pthread_mutex_t _lock;
|