| /freebsd-12-stable/lib/libc/rpc/ |
| D | mt_misc.h | 52 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 …]
|
| D | mt_misc.c | 43 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/ |
| D | pthread.h | 103 #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 …]
|
| D | pthread_np.h | 59 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/ |
| D | synch.h | 49 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/ |
| D | synch.h | 51 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/ |
| D | thr_mutex.c | 68 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 …]
|
| D | thr_private.h | 785 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 …]
|
| D | thr_cond.c | 52 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/ |
| D | gthr-posix.c | 85 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()
|
| D | gthr-posix.h | 48 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 …]
|
| D | gthr-posix95.h | 47 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 …]
|
| D | gthr-dce.h | 49 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/ |
| D | evthread_pthread.c | 48 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/ |
| D | evthread_pthread.c | 48 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/ |
| D | h_pthread_dlopen.c | 47 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/ |
| D | t_dlopen.c | 77 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/ |
| D | d_c99_nested_struct.c | 2 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/ |
| D | ctfmerge.h | 46 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/ |
| D | lib_data.c | 326 _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/ |
| D | config.h | 86 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/ |
| D | sanitizer_wrappers.cpp | 169 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/ |
| D | omp-lock.h | 10 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/ |
| D | omp-lock.h | 10 typedef pthread_mutex_t omp_lock_t; 14 pthread_mutex_t lock;
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/tsan/dd/ |
| D | dd_interceptors.cpp | 43 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()
|