/netbsd-src/lib/libpthread/ |
H A D | pthread.h | 94 int pthread_mutex_init(pthread_mutex_t * __restrict, 96 int pthread_mutex_destroy(pthread_mutex_t *); 97 int pthread_mutex_lock(pthread_mutex_t *); 98 int pthread_mutex_trylock(pthread_mutex_t *); 99 int pthread_mutex_unlock(pthread_mutex_t *); 101 int pthread_mutex_timedlock(pthread_mutex_t * __restrict, 104 int pthread_mutex_getprioceiling(const pthread_mutex_t * __restrict, 106 int pthread_mutex_setprioceiling(pthread_mutex_t * __restrict, int, 130 pthread_mutex_t * __restrict); 133 pthread_mutex_t * __restrict, const struct timespec * __restrict); [all …]
|
H A D | pthread_mutex.c | 104 static int pthread__mutex_lock_slow(pthread_mutex_t *, 108 int _pthread_mutex_held_np(pthread_mutex_t *); 109 pthread_t _pthread_mutex_owner_np(pthread_mutex_t *); 125 pthread_mutex_init(pthread_mutex_t *ptm, const pthread_mutexattr_t *attr) in __weak_alias() 183 pthread_mutex_destroy(pthread_mutex_t *ptm) in pthread_mutex_destroy() 199 pthread_mutex_lock(pthread_mutex_t *ptm) in pthread_mutex_lock() 222 pthread_mutex_timedlock(pthread_mutex_t* ptm, const struct timespec *ts) in pthread_mutex_timedlock() 254 pthread__mutex_spin(pthread_mutex_t *ptm, pthread_t owner) in pthread__mutex_spin() 275 pthread__mutex_lock_slow(pthread_mutex_t *ptm, const struct timespec *ts) in pthread__mutex_lock_slow() 396 pthread_mutex_trylock(pthread_mutex_t *ptm) in pthread_mutex_trylock() [all …]
|
H A D | pthread_int.h | 127 pthread_mutex_t pt_lock __aligned(COHERENCY_UNIT); 192 void pthread__unpark_all(pthread_queue_t *, pthread_t, pthread_mutex_t *) 194 void pthread__unpark(pthread_queue_t *, pthread_t, pthread_mutex_t *) 196 int pthread__park(pthread_t, pthread_mutex_t *, pthread_queue_t *, 198 pthread_mutex_t *pthread__hashlock(volatile const void *) PTHREAD_HIDE; 300 void pthread__mutex_deferwake(pthread_t, pthread_mutex_t *,
|
/netbsd-src/external/gpl3/binutils/dist/gprofng/libcollector/ |
H A D | synctrace.c | 98 static int (*__real_pthread_mutex_lock) (pthread_mutex_t *mutex) = NULL; 99 static int (*__real_pthread_mutex_lock_2_17) (pthread_mutex_t *mutex) = NULL; 100 static int (*__real_pthread_mutex_lock_2_2_5) (pthread_mutex_t *mutex) = NULL; 101 static int (*__real_pthread_mutex_lock_2_0) (pthread_mutex_t *mutex) = NULL; 102 static int (*__real_pthread_mutex_unlock) (pthread_mutex_t *mutex) = NULL; 104 pthread_mutex_t *restrict mutex) = NULL; 106 pthread_mutex_t *restrict mutex, 120 pthread_mutex_t *restrict mutex) = NULL; 122 pthread_mutex_t *restrict mutex) = NULL; 124 pthread_mutex_t *restrict mutex) = NULL; [all …]
|
/netbsd-src/external/bsd/nvi/dist/common/ |
H A D | pthread.c | 67 pthread_mutex_t *mutex; in vi_pthread_lock_init() 70 MALLOC_RET(NULL, mutex, pthread_mutex_t *, sizeof(*mutex)); in vi_pthread_lock_init() 85 pthread_mutex_t *mutex = (pthread_mutex_t *)*p; in vi_pthread_lock_end() 101 return pthread_mutex_trylock((pthread_mutex_t *)*p); in vi_pthread_lock_try() 109 return pthread_mutex_unlock((pthread_mutex_t *)*p); in vi_pthread_lock_unlock()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/ |
H A D | tsan_posix_util.h | 54 pthread_mutex_t *mutex, const pthread_mutexattr_t *attr); 55 extern "C" int __interceptor_pthread_mutex_lock(pthread_mutex_t *mutex); 56 extern "C" int __interceptor_pthread_mutex_unlock(pthread_mutex_t *mutex); 57 extern "C" int __interceptor_pthread_mutex_destroy(pthread_mutex_t *mutex); 58 extern "C" int __interceptor_pthread_mutex_trylock(pthread_mutex_t *mutex); 74 pthread_mutex_t *mutex);
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/ |
H A D | pthread.d | 136 enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init; in version() 175 enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t(0x32AAABA7); 252 enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t(0x33330003); 364 enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init; 375 enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init; 392 enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init; 417 enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init; 721 int pthread_cond_timedwait(pthread_cond_t*, pthread_mutex_t*, const scope timespec*); 722 int pthread_cond_wait(pthread_cond_t*, pthread_mutex_t*); 733 int pthread_mutex_destroy(pthread_mutex_t*); [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/freebsd/ |
H A D | pthread_np.d | 33 int pthread_mutex_getspinloops_np(pthread_mutex_t *mutex, int *count); 34 int pthread_mutex_setspinloops_np(pthread_mutex_t *mutex, int count); 35 int pthread_mutex_getyieldloops_np(pthread_mutex_t *mutex, int *count); 36 int pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count); 37 int pthread_mutex_isowned_np(pthread_mutex_t *mutex);
|
/netbsd-src/external/bsd/libevent/dist/ |
H A D | evthread_pthread.c | 51 pthread_mutex_t *lock = mm_malloc(sizeof(pthread_mutex_t)); in evthread_posix_lock_alloc() 66 pthread_mutex_t *lock = lock_; in evthread_posix_lock_free() 74 pthread_mutex_t *lock = lock_; in evthread_posix_lock() 84 pthread_mutex_t *lock = lock_; in evthread_posix_unlock() 144 pthread_mutex_t *lock = lock_; in evthread_posix_cond_wait()
|
/netbsd-src/external/bsd/ntp/dist/sntp/libevent/ |
H A D | evthread_pthread.c | 50 pthread_mutex_t *lock = mm_malloc(sizeof(pthread_mutex_t)); in evthread_posix_lock_alloc() 65 pthread_mutex_t *lock = lock_; in evthread_posix_lock_free() 73 pthread_mutex_t *lock = lock_; in evthread_posix_lock() 83 pthread_mutex_t *lock = lock_; in evthread_posix_unlock() 143 pthread_mutex_t *lock = lock_; in evthread_posix_cond_wait()
|
/netbsd-src/external/gpl3/gcc.old/dist/libgomp/config/posix/ |
H A D | omp-lock.h | 13 typedef pthread_mutex_t omp_lock_25_t; 14 typedef struct { pthread_mutex_t lock; int count; } omp_nest_lock_25_t; 18 typedef pthread_mutex_t omp_lock_t; 19 typedef struct { pthread_mutex_t lock; int count; void *owner; } omp_nest_lock_t;
|
/netbsd-src/external/gpl3/gcc/dist/libgomp/config/posix/ |
H A D | omp-lock.h | 13 typedef pthread_mutex_t omp_lock_25_t; 14 typedef struct { pthread_mutex_t lock; int count; } omp_nest_lock_25_t; 18 typedef pthread_mutex_t omp_lock_t; 19 typedef struct { pthread_mutex_t lock; int count; void *owner; } omp_nest_lock_t;
|
/netbsd-src/tests/lib/libpthread/dlopen/dso/ |
H A 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()
|
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/pa/ |
H A D | gthr-dce.h | 54 typedef pthread_mutex_t __gthread_mutex_t; 55 typedef pthread_mutex_t __gthread_recursive_mutex_t; 312 mutex->backend = objc_malloc (sizeof (pthread_mutex_t)); in __gthread_objc_mutex_allocate() 314 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, in __gthread_objc_mutex_allocate() 332 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend)) in __gthread_objc_mutex_deallocate() 347 return __gthrw_(pthread_mutex_lock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_lock() 357 && __gthrw_(pthread_mutex_trylock) ((pthread_mutex_t *) mutex->backend) != 1) in __gthread_objc_mutex_trylock() 368 return __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_unlock()
|
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/pa/ |
H A D | gthr-dce.h | 54 typedef pthread_mutex_t __gthread_mutex_t; 55 typedef pthread_mutex_t __gthread_recursive_mutex_t; 312 mutex->backend = objc_malloc (sizeof (pthread_mutex_t)); in __gthread_objc_mutex_allocate() 314 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, in __gthread_objc_mutex_allocate() 332 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend)) in __gthread_objc_mutex_deallocate() 347 return __gthrw_(pthread_mutex_lock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_lock() 357 && __gthrw_(pthread_mutex_trylock) ((pthread_mutex_t *) mutex->backend) != 1) in __gthread_objc_mutex_trylock() 368 return __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_unlock()
|
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/ |
H A D | gthr-posix.h | 50 typedef pthread_mutex_t __gthread_mutex_t; 51 typedef pthread_mutex_t __gthread_recursive_mutex_t; 186 static pthread_mutex_t __gthread_active_mutex = PTHREAD_MUTEX_INITIALIZER; in __gthread_active_p() 511 mutex->backend = objc_malloc (sizeof (pthread_mutex_t)); in __gthread_objc_mutex_allocate() 513 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, NULL)) in __gthread_objc_mutex_allocate() 539 count = __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_deallocate() 545 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend)) in __gthread_objc_mutex_deallocate() 559 && __gthrw_(pthread_mutex_lock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_lock() 572 && __gthrw_(pthread_mutex_trylock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_trylock() 585 && __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_unlock() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libgcc/ |
H A D | gthr-posix.h | 50 typedef pthread_mutex_t __gthread_mutex_t; 51 typedef pthread_mutex_t __gthread_recursive_mutex_t; 186 static pthread_mutex_t __gthread_active_mutex = PTHREAD_MUTEX_INITIALIZER; in __gthread_active_p() 511 mutex->backend = objc_malloc (sizeof (pthread_mutex_t)); in __gthread_objc_mutex_allocate() 513 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, NULL)) in __gthread_objc_mutex_allocate() 539 count = __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend); in __gthread_objc_mutex_deallocate() 545 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend)) in __gthread_objc_mutex_deallocate() 559 && __gthrw_(pthread_mutex_lock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_lock() 572 && __gthrw_(pthread_mutex_trylock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_trylock() 585 && __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend) != 0) in __gthread_objc_mutex_unlock() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/sys/ |
H A D | types.d | 659 union pthread_mutex_t in version() union 703 union pthread_mutex_t in version() union 729 union pthread_mutex_t in version() union 817 struct pthread_mutex_t in version() struct 864 alias void* pthread_mutex_t; in version() local 894 pthread_mutex_t *ptc_mutex; in version() 901 struct pthread_mutex_t { in version() struct 917 pthread_mutex_t pto_mutex; in version() 945 alias void* pthread_mutex_t; in version() local 951 pthread_mutex_t mutex; in version() [all …]
|
/netbsd-src/tests/lib/libpthread/dlopen/ |
H A 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()
|
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/glthread/ |
H A D | lock.h | 293 typedef pthread_mutex_t gl_lock_t; 295 STORAGECLASS pthread_mutex_t NAME; 297 STORAGECLASS pthread_mutex_t NAME = gl_lock_initializer; 351 pthread_mutex_t guard; /* protects the initialization */ 383 pthread_mutex_t lock; /* protects the remaining fields */ 420 typedef pthread_mutex_t gl_recursive_lock_t; 422 STORAGECLASS pthread_mutex_t NAME; 424 STORAGECLASS pthread_mutex_t NAME = gl_recursive_lock_initializer; 446 pthread_mutex_t recmutex; /* recursive mutex */ 447 pthread_mutex_t guard; /* protects the initialization */ [all …]
|
/netbsd-src/tests/usr.bin/xlint/lint1/ |
H A D | d_c99_nested_struct.c | 7 typedef struct pthread_mutex_t { struct 21 } pthread_mutex_t; argument 25 pthread_mutex_t lock;
|
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/building_blocks/ |
H A D | region.d | 605 pthread_mutex_t, pthread_mutex_lock, pthread_mutex_unlock, 607 private static shared pthread_mutex_t sbrkMutex = PTHREAD_MUTEX_INITIALIZER; 631 pthread_mutex_lock(cast(pthread_mutex_t*) &sbrkMutex) == 0 || assert(0); in allocate() 632 scope(exit) pthread_mutex_unlock(cast(pthread_mutex_t*) &sbrkMutex) == 0 in allocate() 655 pthread_mutex_lock(cast(pthread_mutex_t*) &sbrkMutex) == 0 || assert(0); in alignedAllocate() 656 scope(exit) pthread_mutex_unlock(cast(pthread_mutex_t*) &sbrkMutex) == 0 in alignedAllocate() 693 pthread_mutex_lock(cast(pthread_mutex_t*) &sbrkMutex) == 0 || assert(0); in expand() 694 scope(exit) pthread_mutex_unlock(cast(pthread_mutex_t*) &sbrkMutex) == 0 in expand() 734 pthread_mutex_lock(cast(pthread_mutex_t*) &sbrkMutex) == 0 || assert(0); in deallocate() 735 scope(exit) pthread_mutex_unlock(cast(pthread_mutex_t*) &sbrkMutex) == 0 in deallocate() [all …]
|
/netbsd-src/external/cddl/osnet/dist/tools/ctf/cvt/ |
H A D | ctfmerge.h | 46 pthread_mutex_t wip_lock; 63 pthread_mutex_t wq_queue_lock; 70 pthread_mutex_t wq_donequeue_lock;
|
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/intl/ |
H A D | lock.h | 143 typedef pthread_mutex_t gl_lock_t; 145 STORAGECLASS pthread_mutex_t NAME; 147 STORAGECLASS pthread_mutex_t NAME = gl_lock_initializer; 188 pthread_mutex_t guard; /* protects the initialization */ 220 pthread_mutex_t lock; /* protects the remaining fields */ 257 typedef pthread_mutex_t gl_recursive_lock_t; 259 STORAGECLASS pthread_mutex_t NAME; 261 STORAGECLASS pthread_mutex_t NAME = gl_recursive_lock_initializer; 282 pthread_mutex_t recmutex; /* recursive mutex */ 283 pthread_mutex_t guard; /* protects the initialization */ [all …]
|
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/ |
H A D | lock.h | 142 typedef pthread_mutex_t gl_lock_t; 144 STORAGECLASS pthread_mutex_t NAME; 146 STORAGECLASS pthread_mutex_t NAME = gl_lock_initializer; 187 pthread_mutex_t guard; /* protects the initialization */ 219 pthread_mutex_t lock; /* protects the remaining fields */ 256 typedef pthread_mutex_t gl_recursive_lock_t; 258 STORAGECLASS pthread_mutex_t NAME; 260 STORAGECLASS pthread_mutex_t NAME = gl_recursive_lock_initializer; 281 pthread_mutex_t recmutex; /* recursive mutex */ 282 pthread_mutex_t guard; /* protects the initialization */ [all …]
|