Home
last modified time | relevance | path

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

12345678

/freebsd-12-stable/lib/libc/rpc/
Dmt_misc.h52 extern pthread_mutex_t authdes_ops_lock;
53 extern pthread_mutex_t svcauthdesstats_lock;
54 extern pthread_mutex_t authnone_lock;
55 extern pthread_mutex_t authsvc_lock;
56 extern pthread_mutex_t clnt_fd_lock;
57 extern pthread_mutex_t clntraw_lock;
58 extern pthread_mutex_t dupreq_lock;
59 extern pthread_mutex_t loopnconf_lock;
60 extern pthread_mutex_t ops_lock;
61 extern pthread_mutex_t proglst_lock;
[all …]
Dmt_misc.c43 pthread_mutex_t authdes_ops_lock = PTHREAD_MUTEX_INITIALIZER;
46 pthread_mutex_t svcauthdesstats_lock = PTHREAD_MUTEX_INITIALIZER;
49 pthread_mutex_t authnone_lock = PTHREAD_MUTEX_INITIALIZER;
52 pthread_mutex_t authsvc_lock = PTHREAD_MUTEX_INITIALIZER;
55 pthread_mutex_t clnt_fd_lock = PTHREAD_MUTEX_INITIALIZER;
58 pthread_mutex_t clntraw_lock = PTHREAD_MUTEX_INITIALIZER;
61 pthread_mutex_t dupreq_lock = PTHREAD_MUTEX_INITIALIZER;
64 pthread_mutex_t loopnconf_lock = PTHREAD_MUTEX_INITIALIZER;
67 pthread_mutex_t ops_lock = PTHREAD_MUTEX_INITIALIZER;
70 pthread_mutex_t proglst_lock = PTHREAD_MUTEX_INITIALIZER;
[all …]
/freebsd-12-stable/include/
Dpthread.h103 #define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP ((pthread_mutex_t)1)
206 pthread_mutex_t * __mutex,
210 pthread_mutex_t * __restrict __mutex)
232 int pthread_mutex_consistent(pthread_mutex_t * __mutex)
234 int pthread_mutex_destroy(pthread_mutex_t * __mutex)
236 int pthread_mutex_init(pthread_mutex_t * __restrict __mutex,
239 int pthread_mutex_lock(pthread_mutex_t * __mutex)
241 int pthread_mutex_trylock(pthread_mutex_t * __mutex)
243 int pthread_mutex_timedlock(pthread_mutex_t * __restrict __mutex,
246 int pthread_mutex_unlock(pthread_mutex_t * __mutex)
[all …]
Dpthread_np.h59 int pthread_mutex_getspinloops_np(pthread_mutex_t *mutex, int *count);
60 int pthread_mutex_setspinloops_np(pthread_mutex_t *mutex, int count);
61 int pthread_mutex_getyieldloops_np(pthread_mutex_t *mutex, int *count);
62 int pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count);
63 int pthread_mutex_isowned_np(pthread_mutex_t *mutex);
/freebsd-12-stable/contrib/openbsm/bin/auditdistd/
Dsynch.h49 mtx_init(pthread_mutex_t *lock) in mtx_init()
57 mtx_destroy(pthread_mutex_t *lock) in mtx_destroy()
65 mtx_lock(pthread_mutex_t *lock) in mtx_lock()
73 mtx_trylock(pthread_mutex_t *lock) in mtx_trylock()
82 mtx_unlock(pthread_mutex_t *lock) in mtx_unlock()
90 mtx_owned(pthread_mutex_t *lock) in mtx_owned()
155 cv_wait(pthread_cond_t *cv, pthread_mutex_t *lock) in cv_wait()
163 cv_timedwait(pthread_cond_t *cv, pthread_mutex_t *lock, int timeout) in cv_timedwait()
/freebsd-12-stable/sbin/hastd/
Dsynch.h51 mtx_init(pthread_mutex_t *lock) __requires_unlocked(*lock) in mtx_init()
59 mtx_destroy(pthread_mutex_t *lock) __requires_unlocked(*lock) in mtx_destroy()
67 mtx_lock(pthread_mutex_t *lock) __locks_exclusive(*lock) in mtx_lock()
75 mtx_trylock(pthread_mutex_t *lock) __trylocks_exclusive(true, *lock) in mtx_trylock()
84 mtx_unlock(pthread_mutex_t *lock) __unlocks(*lock) in mtx_unlock()
92 mtx_owned(pthread_mutex_t *lock) in mtx_owned()
155 cv_wait(pthread_cond_t *cv, pthread_mutex_t *lock) __requires_exclusive(*lock) in cv_wait()
163 cv_timedwait(pthread_cond_t *cv, pthread_mutex_t *lock, int timeout) in cv_timedwait()
/freebsd-12-stable/lib/libthr/thread/
Dthr_mutex.c68 int __pthread_mutex_timedlock(pthread_mutex_t * __restrict mutex,
70 int _pthread_mutex_getspinloops_np(pthread_mutex_t *mutex, int *count);
71 int _pthread_mutex_setspinloops_np(pthread_mutex_t *mutex, int count);
72 int __pthread_mutex_setspinloops_np(pthread_mutex_t *mutex, int count);
73 int _pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count);
74 int _pthread_mutex_getyieldloops_np(pthread_mutex_t *mutex, int *count);
75 int __pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count);
77 static int mutex_self_trylock(pthread_mutex_t);
78 static int mutex_self_lock(pthread_mutex_t,
81 static int mutex_lock_sleep(struct pthread *, pthread_mutex_t,
[all …]
Dthr_private.h785 int _mutex_reinit(pthread_mutex_t *) __hidden;
853 int _pthread_mutex_consistent(pthread_mutex_t * _Nonnull);
974 int _pthread_mutex_init_calloc_cb(pthread_mutex_t *mutex,
1065 pthread_mutex_t * __restrict, const struct timespec * __restrict);
1068 int __thr_cond_wait(pthread_cond_t *, pthread_mutex_t *);
1069 int _thr_cond_wait(pthread_cond_t *, pthread_mutex_t *);
1095 int __Tthr_mutex_init(pthread_mutex_t * __restrict,
1097 int _Tthr_mutex_consistent(pthread_mutex_t *);
1098 int _thr_mutex_destroy(pthread_mutex_t *);
1099 int _thr_mutex_unlock(pthread_mutex_t *);
[all …]
Dthr_cond.c52 int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
55 static int cond_wait_common(pthread_cond_t *cond, pthread_mutex_t *mutex,
354 cond_wait_common(pthread_cond_t *cond, pthread_mutex_t *mutex, in cond_wait_common()
384 _thr_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) in _thr_cond_wait()
392 pthread_mutex_t * __restrict mutex) in __thr_cond_wait()
400 pthread_mutex_t * __restrict mutex, in _thr_cond_timedwait()
412 __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, in __pthread_cond_timedwait()
/freebsd-12-stable/contrib/gcc/
Dgthr-posix.c85 pthread_mutex_lock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED) in pthread_mutex_lock()
91 pthread_mutex_trylock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED) in pthread_mutex_trylock()
97 pthread_mutex_unlock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED) in pthread_mutex_unlock()
148 pthread_mutex_t *mutex ATTRIBUTE_UNUSED) in pthread_cond_wait()
159 pthread_mutex_init (pthread_mutex_t *mutex ATTRIBUTE_UNUSED, in pthread_mutex_init()
166 pthread_mutex_destroy (pthread_mutex_t *mutex ATTRIBUTE_UNUSED) in pthread_mutex_destroy()
Dgthr-posix.h48 typedef pthread_mutex_t __gthread_mutex_t;
49 typedef pthread_mutex_t __gthread_recursive_mutex_t;
173 static pthread_mutex_t __gthread_active_mutex = PTHREAD_MUTEX_INITIALIZER; in __gthread_active_p()
423 mutex->backend = objc_malloc (sizeof (pthread_mutex_t)); in __gthread_objc_mutex_allocate()
425 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, NULL)) in __gthread_objc_mutex_allocate()
451 count = __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_deallocate()
457 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend)) in __gthread_objc_mutex_deallocate()
471 && __gthrw_(pthread_mutex_lock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_lock()
484 && __gthrw_(pthread_mutex_trylock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_trylock()
497 && __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_unlock()
[all …]
Dgthr-posix95.h47 typedef pthread_mutex_t __gthread_mutex_t;
52 pthread_mutex_t actual;
139 static pthread_mutex_t __gthread_active_mutex = PTHREAD_MUTEX_INITIALIZER; in __gthread_active_p()
389 mutex->backend = objc_malloc (sizeof (pthread_mutex_t)); in __gthread_objc_mutex_allocate()
391 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, NULL)) in __gthread_objc_mutex_allocate()
417 count = __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_deallocate()
423 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend)) in __gthread_objc_mutex_deallocate()
437 && __gthrw_(pthread_mutex_lock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_lock()
450 && __gthrw_(pthread_mutex_trylock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_trylock()
463 && __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_unlock()
[all …]
Dgthr-dce.h49 typedef pthread_mutex_t __gthread_mutex_t;
50 typedef pthread_mutex_t __gthread_recursive_mutex_t;
306 mutex->backend = objc_malloc (sizeof (pthread_mutex_t)); in __gthread_objc_mutex_allocate()
308 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, in __gthread_objc_mutex_allocate()
326 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend)) in __gthread_objc_mutex_deallocate()
341 return __gthrw_(pthread_mutex_lock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_lock()
351 && __gthrw_(pthread_mutex_trylock) ((pthread_mutex_t *) mutex->backend) != 1) in __gthread_objc_mutex_trylock()
362 return __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_unlock()
/freebsd-12-stable/contrib/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()
/freebsd-12-stable/contrib/ntp/sntp/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()
/freebsd-12-stable/contrib/netbsd-tests/lib/libpthread/dlopen/dso/
Dh_pthread_dlopen.c47 int testf_dso_mutex_lock(pthread_mutex_t *);
48 int testf_dso_mutex_unlock(pthread_mutex_t *);
59 testf_dso_mutex_lock(pthread_mutex_t *mtx) in testf_dso_mutex_lock()
68 testf_dso_mutex_unlock(pthread_mutex_t *mtx) in testf_dso_mutex_unlock()
/freebsd-12-stable/contrib/netbsd-tests/lib/libpthread/dlopen/
Dt_dlopen.c77 pthread_mutex_t mtx; in ATF_TC_BODY()
109 pthread_mutex_t mtx; in ATF_TC_BODY()
111 int (*testf_dso_mutex_unlock)(pthread_mutex_t *); in ATF_TC_BODY()
141 pthread_mutex_t mtx; in ATF_TC_BODY()
143 int (*testf_dso_mutex_lock)(pthread_mutex_t *); in ATF_TC_BODY()
/freebsd-12-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/
Dd_c99_nested_struct.c2 typedef struct pthread_mutex_t { struct
16 } pthread_mutex_t; argument
21 pthread_mutex_t lock;
/freebsd-12-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
Dctfmerge.h46 pthread_mutex_t wip_lock;
63 pthread_mutex_t wq_queue_lock;
70 pthread_mutex_t wq_donequeue_lock;
/freebsd-12-stable/contrib/ncurses/ncurses/tinfo/
Dlib_data.c326 _nc_mutex_init(pthread_mutex_t * obj) in _nc_mutex_init()
338 _nc_mutex_lock(pthread_mutex_t * obj) in _nc_mutex_lock()
346 _nc_mutex_trylock(pthread_mutex_t * obj) in _nc_mutex_trylock()
354 _nc_mutex_unlock(pthread_mutex_t * obj) in _nc_mutex_unlock()
/freebsd-12-stable/usr.sbin/nscd/
Dconfig.h86 pthread_mutex_t positive_cache_lock;
87 pthread_mutex_t negative_cache_lock;
88 pthread_mutex_t mp_cache_lock;
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/
Dsanitizer_wrappers.cpp169 int(pthread_cond_t *, pthread_mutex_t *))
170 LLVM_SYMBOLIZER_INTERCEPTOR1(pthread_mutex_lock, int(pthread_mutex_t *))
171 LLVM_SYMBOLIZER_INTERCEPTOR1(pthread_mutex_unlock, int(pthread_mutex_t *))
172 LLVM_SYMBOLIZER_INTERCEPTOR1(pthread_mutex_destroy, int(pthread_mutex_t *))
174 int(pthread_mutex_t *,
/freebsd-12-stable/contrib/gcclibs/libgomp/config/posix/
Domp-lock.h10 typedef pthread_mutex_t omp_lock_t;
11 typedef struct { pthread_mutex_t lock; int count; } omp_nest_lock_t;
/freebsd-12-stable/contrib/gcclibs/libgomp/config/posix95/
Domp-lock.h10 typedef pthread_mutex_t omp_lock_t;
14 pthread_mutex_t lock;
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/tsan/dd/
Ddd_interceptors.cpp43 INTERCEPTOR(int, pthread_mutex_destroy, pthread_mutex_t *m) { in INTERCEPTOR()
49 INTERCEPTOR(int, pthread_mutex_lock, pthread_mutex_t *m) { in INTERCEPTOR()
57 INTERCEPTOR(int, pthread_mutex_trylock, pthread_mutex_t *m) { in INTERCEPTOR()
65 INTERCEPTOR(int, pthread_mutex_unlock, pthread_mutex_t *m) { in INTERCEPTOR()
183 INTERCEPTOR(int, pthread_cond_wait, pthread_cond_t *c, pthread_mutex_t *m) { in INTERCEPTOR()
193 INTERCEPTOR(int, pthread_cond_timedwait, pthread_cond_t *c, pthread_mutex_t *m, in INTERCEPTOR()

12345678