Home
last modified time | relevance | path

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

12345678910>>...12

/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/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/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/libnfc-nci/halimpl/bcm2079x/gki/ulinux/
Dgki_int.h33 pthread_mutex_t GKI_mutex;
35 pthread_mutex_t thread_evt_mutex[GKI_MAX_TASKS];
37 pthread_mutex_t thread_timeout_mutex[GKI_MAX_TASKS];
40 pthread_mutex_t gki_timer_mutex;
44 pthread_mutex_t GKI_trace_mutex;
/external/libnfc-nci/src/gki/ulinux/
Dgki_int.h33 pthread_mutex_t GKI_mutex;
35 pthread_mutex_t thread_evt_mutex[GKI_MAX_TASKS];
37 pthread_mutex_t thread_timeout_mutex[GKI_MAX_TASKS];
40 pthread_mutex_t gki_timer_mutex;
44 pthread_mutex_t GKI_trace_mutex;
/external/valgrind/helgrind/tests/
Dtc15_laog_lockdel.c14 pthread_mutex_t *mx1, *mx2; in main()
15 assert (sizeof(pthread_mutex_t) <= 120); in main()
16 mx1 = malloc(120 + sizeof(pthread_mutex_t) - sizeof(pthread_mutex_t)); in main()
17 mx2 = malloc(120 + sizeof(pthread_mutex_t) - sizeof(pthread_mutex_t)); in main()
Dtc22_exit_w_lock.c10 pthread_mutex_t mxC1 = PTHREAD_MUTEX_INITIALIZER;
11 pthread_mutex_t mxC2 = PTHREAD_MUTEX_INITIALIZER;
12 pthread_mutex_t mxC2b = PTHREAD_MUTEX_INITIALIZER;
13 pthread_mutex_t mxP = PTHREAD_MUTEX_INITIALIZER;
Dtc04_free_lock.c10 pthread_mutex_t lock; int morestuff[2000]; } XX;
36 pthread_mutex_t mx = PTHREAD_MUTEX_INITIALIZER; in bar()
45 pthread_mutex_t mx; in foo()
Dlocked_vs_unlocked2.c15 pthread_mutex_t mx1a;
16 pthread_mutex_t mx1b;
17 pthread_mutex_t mx2a;
18 pthread_mutex_t mx2b;
/external/libnfc-nci/src/include/
DNfcAdaptation.h35 operator pthread_mutex_t* () {return &mMutex;}
37 pthread_mutex_t mMutex;
48 operator pthread_mutex_t* () {return ThreadMutex::operator pthread_mutex_t*();}
59 operator pthread_mutex_t* () {return (pthread_mutex_t*)mm;}
/external/valgrind/drd/tests/
Drecursive_mutex.c13 static void lock_twice(pthread_mutex_t* const p) in lock_twice()
29 pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; in main()
38 pthread_mutex_t m; in main()
52 pthread_mutex_t m; in main()
66 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; in main()
/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/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/libvpx/libvpx/vpx_util/
Dvpx_thread.h36 typedef CRITICAL_SECTION pthread_mutex_t; typedef
72 static INLINE int pthread_mutex_init(pthread_mutex_t *const mutex, in pthread_mutex_init()
79 static INLINE int pthread_mutex_trylock(pthread_mutex_t *const mutex) { in pthread_mutex_trylock()
83 static INLINE int pthread_mutex_lock(pthread_mutex_t *const mutex) { in pthread_mutex_lock()
88 static INLINE int pthread_mutex_unlock(pthread_mutex_t *const mutex) { in pthread_mutex_unlock()
93 static INLINE int pthread_mutex_destroy(pthread_mutex_t *const mutex) { in pthread_mutex_destroy()
136 pthread_mutex_t *const mutex) { in pthread_cond_wait()
/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.c46 pthread_mutex_t *lock = mm_malloc(sizeof(pthread_mutex_t)); in evthread_posix_lock_alloc()
61 pthread_mutex_t *lock = _lock; in evthread_posix_lock_free()
69 pthread_mutex_t *lock = _lock; in evthread_posix_lock()
79 pthread_mutex_t *lock = _lock; in evthread_posix_unlock()
139 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/libusb/libusb/
Dlibusbi.h152 pthread_mutex_t usb_devs_lock;
157 pthread_mutex_t open_devs_lock;
164 pthread_mutex_t flying_transfers_lock;
168 pthread_mutex_t pollfds_lock;
173 pthread_mutex_t pollfd_modify_lock;
181 pthread_mutex_t events_lock;
188 pthread_mutex_t event_waiters_lock;
207 pthread_mutex_t lock;
223 pthread_mutex_t lock;
265 pthread_mutex_t lock;
/external/valgrind/helgrind/
Dhg_intercepts.c757 pthread_mutex_t *mutex, in PTH_FUNC()
780 pthread_mutex_t*,mutex, long,mbRec); in PTH_FUNC()
829 static int mutex_destroy_WRK(pthread_mutex_t *mutex) in mutex_destroy_WRK()
841 static const pthread_mutex_t mutex_init = PTHREAD_MUTEX_INITIALIZER; in mutex_destroy_WRK()
848 pthread_mutex_t*, mutex, unsigned long, mutex_is_init); in mutex_destroy_WRK()
864 pthread_mutex_t *mutex) { in PTH_FUNC()
869 pthread_mutex_t *mutex) { in PTH_FUNC()
882 static int mutex_lock_WRK(pthread_mutex_t *mutex) in mutex_lock_WRK()
892 pthread_mutex_t*,mutex, long,0/*!isTryLock*/); in mutex_lock_WRK()
902 pthread_mutex_t *, mutex, long, (ret == 0) ? True : False); in mutex_lock_WRK()
[all …]
/external/clang/test/Modules/
Dmerge-name-for-linkage.cpp4 typedef union {} pthread_mutex_t; typedef
6 pthread_mutex_t x;
8 pthread_mutex_t y;
/external/compiler-rt/test/tsan/
Drace_on_mutex2.c5 pthread_mutex_lock((pthread_mutex_t*)x); in Thread()
6 pthread_mutex_unlock((pthread_mutex_t*)x); in Thread()
13 pthread_mutex_t Mtx; in main()
/external/valgrind/drd/
Ddrd_pthread_intercepts.c213 pthread_mutex_t mutex;
265 static __always_inline void DRD_(ignore_mutex_ordering)(pthread_mutex_t *mutex) in DRD_()
367 static __always_inline MutexT DRD_(mutex_type)(pthread_mutex_t* mutex) in DRD_()
805 int pthread_mutex_init_intercept(pthread_mutex_t *mutex, in pthread_mutex_init_intercept()
825 (pthread_mutex_t *mutex, const pthread_mutexattr_t* attr),
851 int pthread_mutex_destroy_intercept(pthread_mutex_t* mutex) in pthread_mutex_destroy_intercept()
867 (pthread_mutex_t *mutex), (mutex));
870 (pthread_mutex_t *mutex), (mutex));
874 int pthread_mutex_lock_intercept(pthread_mutex_t* mutex) in pthread_mutex_lock_intercept()
890 (pthread_mutex_t *mutex), (mutex));
[all …]
/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>>...12