Home
last modified time | relevance | path

Searched refs:pthread_mutex_t (Results 1 – 25 of 34) sorted by relevance

12

/bionic/tests/headers/posix/
Dpthread_h.c72 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 …]
Dsys_types_h.c55 TYPE(pthread_mutex_t); in sys_types_h()
/bionic/libc/bionic/
Dpthread_cond.cpp184 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()
Dpthread_mutex.cpp489 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 …]
Dthread_private.cpp34 static pthread_mutex_t g_arc4_lock = PTHREAD_MUTEX_INITIALIZER;
Dheap_tagging.h41 extern pthread_mutex_t g_heap_tagging_lock;
Dmalloc_common_dynamic.h46 extern pthread_mutex_t gGlobalsMutateLock;
Dheap_tagging.cpp105 pthread_mutex_t g_heap_tagging_lock = PTHREAD_MUTEX_INITIALIZER;
Dpthread_atfork.cpp113 static pthread_mutex_t g_atfork_list_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
Ddirent.cpp57 pthread_mutex_t mutex_;
/bionic/libc/private/
Dthread_private.h19 #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)
DScopedPthreadMutexLocker.h25 explicit ScopedPthreadMutexLocker(pthread_mutex_t* mu) : mu_(mu) { in ScopedPthreadMutexLocker()
34 pthread_mutex_t* mu_;
Dbionic_globals.h107 pthread_mutex_t abort_msg_lock = PTHREAD_MUTEX_INITIALIZER;
140 pthread_mutex_t crash_detail_page_lock = PTHREAD_MUTEX_INITIALIZER;
/bionic/libc/include/
Dpthread.h127 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 …]
Dthreads.h51 typedef pthread_mutex_t mtx_t;
/bionic/benchmarks/
Dpthread_benchmark.cpp69 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/
Dpthread_test.cpp346 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/
Dgdtoa_support.cpp19 __LIBC_HIDDEN__ pthread_mutex_t __dtoa_locks[] = { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIAL…
/bionic/libc/upstream-netbsd/android/include/
Dreentrant.h29 #define mutex_t pthread_mutex_t
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dquick_exit.c49 static pthread_mutex_t atexit_mutex = PTHREAD_MUTEX_INITIALIZER;
/bionic/libc/dns/resolv/
Dres_data.cpp50 static pthread_mutex_t mutex;
54 pthread_mutex_t GlobalStateAccessor::mutex = PTHREAD_MUTEX_INITIALIZER;
/bionic/libc/include/bits/
Dpthread_types.h78 } pthread_mutex_t; typedef
/bionic/linker/
Dlinker_globals.h107 __LIBC_HIDDEN__ extern pthread_mutex_t g_dl_mutex;
Dlinker_gdb_support.cpp43 static pthread_mutex_t g__r_debug_mutex = PTHREAD_MUTEX_INITIALIZER;
/bionic/libc/stdio/
Dlocal.h132 pthread_mutex_t _lock;

12