Home
last modified time | relevance | path

Searched refs:pthread_mutex_init (Results 1 – 25 of 165) sorted by relevance

1234567

/freebsd/contrib/ntp/libntp/lib/isc/pthreads/
H A Dmutex.c34 # define pthread_mutex_init(m, a) \ macro
35 pthread_mutex_init(m, (a) \
102 err = pthread_mutex_init(&mp->mutex, NULL); in isc_mutex_init_profile()
251 err = pthread_mutex_init(mp, &attr) != 0) in isc_mutex_init_errcheck()
273 err = pthread_mutex_init(mp, ISC__MUTEX_ATTRS); in isc__mutex_init()
/freebsd/contrib/netbsd-tests/lib/libpthread/
H A Dt_mutex.c113 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
202 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
414 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, &mattr)); in ATF_TC_BODY()
503 PTHREAD_REQUIRE(pthread_mutex_init(&mutex5, &attr5)); in ATF_TC_BODY()
620 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
718 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
743 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
779 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
807 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
H A Dt_cond.c83 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
144 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
521 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
576 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
619 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
H A Dt_fpu.c139 PTHREAD_REQUIRE(pthread_mutex_init(&recursion_depth_lock, 0)); in ATF_TC_BODY()
H A Dt_barrier.c79 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
H A Dt_preempt.c95 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL)); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/libpthread/dlopen/
H A Dt_dlopen.c81 ATF_REQUIRE(pthread_mutex_init(&mtx, NULL) == 0); in ATF_TC_BODY()
113 ATF_REQUIRE(pthread_mutex_init(&mtx, NULL) == 0); in ATF_TC_BODY()
145 ATF_REQUIRE(pthread_mutex_init(&mtx, NULL) == 0); in ATF_TC_BODY()
/freebsd/contrib/ofed/libibverbs/
H A Ddevice.c144 err = pthread_mutex_init(&cq->mutex, NULL); in verbs_init_cq()
231 if (pthread_mutex_init(&context->mutex, NULL)) { in __ibv_open_device()
257 if (pthread_mutex_init(&context->mutex, NULL)) in __ibv_open_device()
440 err = pthread_mutex_init(&wq->mutex, NULL); in __ibv_init_wq()
/freebsd/contrib/unbound/util/
H A Dlocks.h101 #define lock_basic_init(lock) LOCKRET(pthread_mutex_init(lock, NULL))
109 #define lock_rw_init(lock) LOCKRET(pthread_mutex_init(lock, NULL))
129 #define lock_quick_init(lock) LOCKRET(pthread_mutex_init(lock, NULL))
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dlib_data.c326 if ((pthread_mutex_init) == 0) in _nc_init_pthreads()
358 pthread_mutex_init(obj, &recattr); in _nc_mutex_init()
/freebsd/tools/regression/pthread/unwind/
H A Dcond_wait_cancel.cpp30 pthread_mutex_init(&mtx, NULL); in main()
H A Dcond_wait_cancel2.cpp47 pthread_mutex_init(&mtx, NULL); in main()
/freebsd/lib/libnetmap/
H A Dnmctx-pthreads.c69 pthread_mutex_init(&nmctx_pthreadsafe.mutex, NULL); in nmctx_set_threadsafe()
/freebsd/tools/regression/pthread/mutex_isowned_np/
H A Dmutex_isowned_np.c52 pthread_mutex_init(&mtx, NULL); in main()
/freebsd/tools/test/stress2/misc/
H A Dpthread7.sh249 if ((rc = pthread_mutex_init(&newfiles.mtx, pattr)) != 0)
253 if ((rc = pthread_mutex_init(&renamedfiles.mtx, NULL)) != 0)
H A Dpthread2.sh260 if ((rc = pthread_mutex_init(&newfiles.mtx, NULL)) != 0)
264 if ((rc = pthread_mutex_init(&renamedfiles.mtx, NULL)) != 0)
H A Dpthread3.sh253 if ((rc = pthread_mutex_init(&newfiles.mtx, NULL)) != 0)
257 if ((rc = pthread_mutex_init(&renamedfiles.mtx, NULL)) != 0)
H A Dpthread4.sh260 if ((rc = pthread_mutex_init(&newfiles.mtx, pattr)) != 0)
264 if ((rc = pthread_mutex_init(&renamedfiles.mtx, NULL)) != 0)
H A Dpthread6.sh253 if ((rc = pthread_mutex_init(&newfiles.mtx, pattr)) != 0)
257 if ((rc = pthread_mutex_init(&renamedfiles.mtx, NULL)) != 0)
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dbarrier.c51 pthread_mutex_init(&bar->bar_lock, NULL); in barrier_init()
/freebsd/lib/libstdthreads/
H A Dmtx.c65 pthread_mutex_init(mtx, &attr) != 0) in mtx_init()
/freebsd/contrib/ofed/opensm/complib/
H A Dcl_spinlock.c56 if (pthread_mutex_init(&p_spinlock->mutex, NULL)) in cl_spinlock_init()
/freebsd/usr.sbin/nscd/
H A Dconfig.c130 res = pthread_mutex_init(&retval->positive_cache_lock, NULL); in create_configuration_entry()
139 res = pthread_mutex_init(&retval->negative_cache_lock, NULL); in create_configuration_entry()
149 res = pthread_mutex_init(&retval->mp_cache_lock, NULL); in create_configuration_entry()
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_atomic.c52 pthread_mutex_init(&atomic_mtx, NULL); in atomic_init()
/freebsd/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_atomic.c52 pthread_mutex_init(&atomic_mtx, NULL); in atomic_init()

1234567