Home
last modified time | relevance | path

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

12345678910>>...20

/external/swiftshader/third_party/llvm-subzero/lib/Support/
DMutex.cpp48 pthread_mutex_t* mutex = in MutexImpl()
49 static_cast<pthread_mutex_t*>(malloc(sizeof(pthread_mutex_t))); in MutexImpl()
77 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in ~MutexImpl()
86 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in acquire()
96 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in release()
106 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in tryacquire()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DMutex.cpp49 pthread_mutex_t* mutex = in MutexImpl()
50 static_cast<pthread_mutex_t*>(safe_malloc(sizeof(pthread_mutex_t))); in MutexImpl()
79 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in ~MutexImpl()
88 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in acquire()
98 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in release()
108 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in tryacquire()
/external/llvm/lib/Support/
DMutex.cpp48 pthread_mutex_t* mutex = in MutexImpl()
49 static_cast<pthread_mutex_t*>(malloc(sizeof(pthread_mutex_t))); in MutexImpl()
77 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in ~MutexImpl()
86 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in acquire()
96 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in release()
106 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in tryacquire()
/external/swiftshader/third_party/LLVM/lib/Support/
DMutex.cpp64 pthread_mutex_t* mutex = in MutexImpl()
65 static_cast<pthread_mutex_t*>(malloc(sizeof(pthread_mutex_t))); in MutexImpl()
102 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in ~MutexImpl()
114 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in acquire()
127 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in release()
140 pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); in tryacquire()
/external/swiftshader/third_party/LLVM/test/Linker/
D2011-08-22-ResolveAlias.ll5 %union.pthread_mutex_t = type { [40 x i8] }
20 @_ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @pth…
21 @_ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @…
22 …utex_timedlockP15pthread_mutex_tPK8timespec = alias weak i32 (%union.pthread_mutex_t*, %struct.tim…
23 @_ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @p…
24 …itP15pthread_mutex_tPK19pthread_mutexattr_t = alias weak i32 (%union.pthread_mutex_t*, %union.pthr…
25 @_ZL29__gthrw_pthread_mutex_destroyP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @…
28 …tP15pthread_mutex_t = alias weak i32 (%union.pthread_cond_t*, %union.pthread_mutex_t*)* @pthread_c…
29 …_mutex_tPK8timespec = alias weak i32 (%union.pthread_cond_t*, %union.pthread_mutex_t*, %struct.tim…
57 declare extern_weak i32 @pthread_mutex_lock(%union.pthread_mutex_t*)
[all …]
D2011-08-22-ResolveAlias2.ll7 %union.pthread_mutex_t = type { [40 x i8] }
23 @_ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @pth…
24 @_ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @…
25 …utex_timedlockP15pthread_mutex_tPK8timespec = alias weak i32 (%union.pthread_mutex_t*, %struct.tim…
26 @_ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @p…
27 …itP15pthread_mutex_tPK19pthread_mutexattr_t = alias weak i32 (%union.pthread_mutex_t*, %union.pthr…
28 @_ZL29__gthrw_pthread_mutex_destroyP15pthread_mutex_t = alias weak i32 (%union.pthread_mutex_t*)* @…
31 …tP15pthread_mutex_t = alias weak i32 (%union.pthread_cond_t*, %union.pthread_mutex_t*)* @pthread_c…
32 …_mutex_tPK8timespec = alias weak i32 (%union.pthread_cond_t*, %union.pthread_mutex_t*, %struct.tim…
62 declare extern_weak i32 @pthread_mutex_lock(%union.pthread_mutex_t*)
[all …]
/external/clang/test/Analysis/Inputs/
Dsystem-header-simulator-for-pthread-lock.h8 } pthread_mutex_t; typedef
18 typedef pthread_mutex_t lck_mtx_t;
20 extern int pthread_mutex_lock(pthread_mutex_t *);
21 extern int pthread_mutex_unlock(pthread_mutex_t *);
22 extern int pthread_mutex_trylock(pthread_mutex_t *);
23 extern int pthread_mutex_destroy(pthread_mutex_t *);
24 extern int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr);
/external/deqp/framework/delibs/dethread/unix/
DdeMutexUnix.c34 DE_STATIC_ASSERT(sizeof(deMutex) >= sizeof(pthread_mutex_t*));
40 pthread_mutex_t* mutex = deMalloc(sizeof(pthread_mutex_t)); in deMutex_create()
90 pthread_mutex_t* pMutex = (pthread_mutex_t*)mutex; in deMutex_destroy()
98 int ret = pthread_mutex_lock((pthread_mutex_t*)mutex); in deMutex_lock()
105 int ret = pthread_mutex_unlock((pthread_mutex_t*)mutex); in deMutex_unlock()
112 return (pthread_mutex_trylock((pthread_mutex_t*)mutex) == 0); in deMutex_tryLock()
/external/llvm/test/CodeGen/Generic/
D2009-03-17-LSR-APInt.ll28 %struct.pthread_mutex_t = type { %struct..0__pthread_mutex_s }
38 … weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock ;…
39 …eak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock …
40 …weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock …
41 …ruct.pthread_mutex_t*, %struct.Alignment*), i32 (%struct.pthread_mutex_t*, %struct.Alignment*)* @p…
86 define i32 @pthread_mutex_lock(%struct.pthread_mutex_t*) {
90 define i32 @pthread_mutex_trylock(%struct.pthread_mutex_t*) {
94 define i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*) {
98 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.Alignment*) {
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Generic/
D2009-03-17-LSR-APInt.ll28 %struct.pthread_mutex_t = type { %struct..0__pthread_mutex_s }
38 … weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock ;…
39 …eak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock …
40 …weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock …
41 …ruct.pthread_mutex_t*, %struct.Alignment*), i32 (%struct.pthread_mutex_t*, %struct.Alignment*)* @p…
86 define i32 @pthread_mutex_lock(%struct.pthread_mutex_t*) {
90 define i32 @pthread_mutex_trylock(%struct.pthread_mutex_t*) {
94 define i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*) {
98 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.Alignment*) {
/external/libvpx/libvpx/vpx_util/
Dvpx_thread.h35 typedef CRITICAL_SECTION pthread_mutex_t; typedef
101 static INLINE int pthread_mutex_init(pthread_mutex_t *const mutex, in pthread_mutex_init()
112 static INLINE int pthread_mutex_trylock(pthread_mutex_t *const mutex) { in pthread_mutex_trylock()
116 static INLINE int pthread_mutex_lock(pthread_mutex_t *const mutex) { in pthread_mutex_lock()
121 static INLINE int pthread_mutex_unlock(pthread_mutex_t *const mutex) { in pthread_mutex_unlock()
126 static INLINE int pthread_mutex_destroy(pthread_mutex_t *const mutex) { in pthread_mutex_destroy()
197 pthread_mutex_t *const mutex) { in pthread_cond_wait()
228 #define pthread_mutex_t HMTX
280 static INLINE int pthread_mutex_init(pthread_mutex_t *const mutex,
286 static INLINE int pthread_mutex_trylock(pthread_mutex_t *const mutex) {
[all …]
/external/libaom/libaom/aom_util/
Daom_thread.h38 typedef CRITICAL_SECTION pthread_mutex_t; typedef
99 static INLINE int pthread_mutex_init(pthread_mutex_t *const mutex, in pthread_mutex_init()
110 static INLINE int pthread_mutex_trylock(pthread_mutex_t *const mutex) { in pthread_mutex_trylock()
114 static INLINE int pthread_mutex_lock(pthread_mutex_t *const mutex) { in pthread_mutex_lock()
119 static INLINE int pthread_mutex_unlock(pthread_mutex_t *const mutex) { in pthread_mutex_unlock()
124 static INLINE int pthread_mutex_destroy(pthread_mutex_t *const mutex) { in pthread_mutex_destroy()
195 pthread_mutex_t *const mutex) { in pthread_cond_wait()
221 #define pthread_mutex_t HMTX
273 static INLINE int pthread_mutex_init(pthread_mutex_t *const mutex,
279 static INLINE int pthread_mutex_trylock(pthread_mutex_t *const mutex) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/GVN/
D2009-03-10-PREOnVoid.ll12 …%struct.pthread_mutex_t = type { i32, i32, %struct._pthread_descr_struct*, i32, %llvm.dbg.anchor.t…
25 … weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock ;…
26 …eak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock …
27 …weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock …
28 ….pthread_mutex_t*, %struct.__sched_param*), i32 (%struct.pthread_mutex_t*, %struct.__sched_param*)…
76 define i32 @pthread_mutex_lock(%struct.pthread_mutex_t*) {
80 define i32 @pthread_mutex_trylock(%struct.pthread_mutex_t*) {
84 define i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*) {
88 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.__sched_param*) {
/external/llvm/test/Transforms/GVN/
D2009-03-10-PREOnVoid.ll12 …%struct.pthread_mutex_t = type { i32, i32, %struct._pthread_descr_struct*, i32, %llvm.dbg.anchor.t…
25 … weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock ;…
26 …eak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock …
27 …weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock …
28 ….pthread_mutex_t*, %struct.__sched_param*), i32 (%struct.pthread_mutex_t*, %struct.__sched_param*)…
76 define i32 @pthread_mutex_lock(%struct.pthread_mutex_t*) {
80 define i32 @pthread_mutex_trylock(%struct.pthread_mutex_t*) {
84 define i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*) {
88 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.__sched_param*) {
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/NewGVN/
D2009-03-10-PREOnVoid.ll12 …%struct.pthread_mutex_t = type { i32, i32, %struct._pthread_descr_struct*, i32, %llvm.dbg.anchor.t…
25 … weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock ;…
26 …eak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock …
27 …weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock …
28 ….pthread_mutex_t*, %struct.__sched_param*), i32 (%struct.pthread_mutex_t*, %struct.__sched_param*)…
76 define i32 @pthread_mutex_lock(%struct.pthread_mutex_t*) {
80 define i32 @pthread_mutex_trylock(%struct.pthread_mutex_t*) {
84 define i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*) {
88 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.__sched_param*) {
/external/swiftshader/third_party/LLVM/test/CodeGen/Generic/
D2009-03-17-LSR-APInt.ll28 %struct.pthread_mutex_t = type { %struct..0__pthread_mutex_s }
38 …thread_mutex_t = alias weak i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock ; <i32 (%struct.p…
39 …read_mutex_t = alias weak i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock ; <i32 (%struct.
40 …hread_mutex_t = alias weak i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock ; <i32 (%struct.
41 …tr_t = alias weak i32 (%struct.pthread_mutex_t*, %struct.Alignment*)* @pthread_mutex_init ; <i32 …
76 declare i32 @pthread_mutex_lock(%struct.pthread_mutex_t*)
78 declare i32 @pthread_mutex_trylock(%struct.pthread_mutex_t*)
80 declare i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*)
82 declare i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.Alignment*)
/external/gemmlowp/profiling/
Dpthread_everywhere.h46 using pthread_mutex_t = std::mutex *; variable
53 inline void pthread_mutex_init(pthread_mutex_t *mutex, std::nullptr_t) { in pthread_mutex_init()
56 inline void pthread_mutex_lock(pthread_mutex_t *mutex) { (*mutex)->lock(); } in pthread_mutex_lock()
57 inline void pthread_mutex_unlock(pthread_mutex_t *mutex) { (*mutex)->unlock(); } in pthread_mutex_unlock()
58 inline void pthread_mutex_destroy(pthread_mutex_t *mutex) { delete *mutex; } in pthread_mutex_destroy()
63 inline void pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) { in pthread_cond_wait()
/external/libhevc/common/
Dithread.c61 return sizeof(pthread_mutex_t); in ithread_get_mutex_lock_size()
82 return (sizeof(pthread_mutex_t)); in ithread_get_mutex_struct_size()
86 return pthread_mutex_init((pthread_mutex_t *)mutex, NULL); in ithread_mutex_init()
91 return pthread_mutex_destroy((pthread_mutex_t *)mutex); in ithread_mutex_destroy()
96 return pthread_mutex_lock((pthread_mutex_t *)mutex); in ithread_mutex_lock()
101 return pthread_mutex_unlock((pthread_mutex_t *)mutex); in ithread_mutex_unlock()
/external/libmpeg2/common/
Dithread.c67 return sizeof(pthread_mutex_t); in ithread_get_mutex_lock_size()
90 return(sizeof(pthread_mutex_t)); in ithread_get_mutex_struct_size()
94 return pthread_mutex_init((pthread_mutex_t *) mutex, NULL); in ithread_mutex_init()
99 return pthread_mutex_destroy((pthread_mutex_t *) mutex); in ithread_mutex_destroy()
104 return pthread_mutex_lock((pthread_mutex_t *)mutex); in ithread_mutex_lock()
109 return pthread_mutex_unlock((pthread_mutex_t *)mutex); in ithread_mutex_unlock()
/external/swiftshader/third_party/LLVM/test/Transforms/GVN/
D2009-03-10-PREOnVoid.ll12 …%struct.pthread_mutex_t = type { i32, i32, %struct._pthread_descr_struct*, i32, %llvm.dbg.anchor.t…
25 …thread_mutex_t = alias weak i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock ; <i32 (%struct.p…
26 …read_mutex_t = alias weak i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock ; <i32 (%struct.
27 …hread_mutex_t = alias weak i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock ; <i32 (%struct.
28 …_t = alias weak i32 (%struct.pthread_mutex_t*, %struct.__sched_param*)* @pthread_mutex_init ; <i3…
66 declare i32 @pthread_mutex_lock(%struct.pthread_mutex_t*)
68 declare i32 @pthread_mutex_trylock(%struct.pthread_mutex_t*)
70 declare i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*)
72 declare i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.__sched_param*)
/external/libavc/common/
Dithread.c73 return sizeof(pthread_mutex_t); in ithread_get_mutex_lock_size()
92 return(sizeof(pthread_mutex_t)); in ithread_get_mutex_struct_size()
96 return pthread_mutex_init((pthread_mutex_t *) mutex, NULL); in ithread_mutex_init()
101 return pthread_mutex_destroy((pthread_mutex_t *) mutex); in ithread_mutex_destroy()
106 return pthread_mutex_lock((pthread_mutex_t *)mutex); in ithread_mutex_lock()
111 return pthread_mutex_unlock((pthread_mutex_t *)mutex); in ithread_mutex_unlock()
/external/libevent/
Devthread_pthread.c48 pthread_mutex_t *lock = mm_malloc(sizeof(pthread_mutex_t)); in evthread_posix_lock_alloc()
63 pthread_mutex_t *lock = lock_; in evthread_posix_lock_free()
71 pthread_mutex_t *lock = lock_; in evthread_posix_lock()
81 pthread_mutex_t *lock = lock_; in evthread_posix_unlock()
141 pthread_mutex_t *lock = lock_; in evthread_posix_cond_wait()
/external/v8/src/base/platform/
Dmutex.cc14 static V8_INLINE void InitializeNativeHandle(pthread_mutex_t* mutex) { in InitializeNativeHandle()
35 static V8_INLINE void InitializeRecursiveNativeHandle(pthread_mutex_t* mutex) { in InitializeRecursiveNativeHandle()
49 static V8_INLINE void DestroyNativeHandle(pthread_mutex_t* mutex) { in DestroyNativeHandle()
56 static V8_INLINE void LockNativeHandle(pthread_mutex_t* mutex) { in LockNativeHandle()
63 static V8_INLINE void UnlockNativeHandle(pthread_mutex_t* mutex) { in UnlockNativeHandle()
70 static V8_INLINE bool TryLockNativeHandle(pthread_mutex_t* mutex) { in TryLockNativeHandle()
/external/ltp/testcases/kernel/sched/nptl/
Dnptl01.c56 pthread_mutex_t req;
57 pthread_mutex_t ack;
58 pthread_mutex_t wait;
72 void call_mutex_init(pthread_mutex_t * mutex, char *buf, size_t buf_len) in call_mutex_init()
82 void call_mutex_lock(pthread_mutex_t * mutex, char *buf, size_t buf_len) in call_mutex_lock()
92 void call_mutex_unlock(pthread_mutex_t * mutex, char *buf, size_t buf_len) in call_mutex_unlock()
112 void call_cond_wait(pthread_cond_t * cond, pthread_mutex_t * mutex, in call_cond_wait()
133 void do_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, in do_timedwait()
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_test_util_posix.cc66 pthread_mutex_t *mutex, const pthread_mutexattr_t *attr);
67 extern "C" int __interceptor_pthread_mutex_lock(pthread_mutex_t *mutex);
68 extern "C" int __interceptor_pthread_mutex_unlock(pthread_mutex_t *mutex);
69 extern "C" int __interceptor_pthread_mutex_destroy(pthread_mutex_t *mutex);
70 extern "C" int __interceptor_pthread_mutex_trylock(pthread_mutex_t *mutex);
92 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; in TestMutexBeforeInit()
150 CHECK_EQ(__interceptor_pthread_mutex_init((pthread_mutex_t*)mtx_, 0), 0); in Init()
165 pthread_mutex_t tmp = PTHREAD_MUTEX_INITIALIZER; in StaticInit()
173 CHECK_EQ(__interceptor_pthread_mutex_destroy((pthread_mutex_t*)mtx_), 0); in Destroy()
185 CHECK_EQ(__interceptor_pthread_mutex_lock((pthread_mutex_t*)mtx_), 0); in Lock()
[all …]

12345678910>>...20