Defined in 1 files as a prototype:
Defined in 1 files as a macro:
Defined in 2 files as a function:
Referenced in 207 files:
- crypto/external/bsd/openssh/dist/auth-pam.c, line 607
- crypto/external/bsd/openssh/dist/cipher-ctr-mt.c, 2 times
- crypto/external/bsd/openssl/dist/test/drbgtest.c, line 918
- crypto/external/bsd/openssl/dist/test/threadstest.c, line 78
- crypto/external/cpl/trousers/dist/src/include/threads.h, line 36
- external/bsd/jemalloc/dist/src/background_thread.c, line 340
- external/bsd/jemalloc/dist/test/src/thd.c, line 32
- external/bsd/libc++/dist/libcxx/src/thread.cpp, line 44
- external/bsd/libevent/dist/test/regress.c, line 1030
- external/bsd/libevent/dist/test/regress_thread.h, line 37
- external/bsd/libpcap/dist/testprogs/threadsignaltest.c, line 298
- external/bsd/llvm/dist/llvm/examples/ParallelJIT/ParallelJIT.cpp, 3 times
- external/bsd/llvm/dist/llvm/unittests/Support/ManagedStatic.cpp, 2 times
- external/bsd/llvm/dist/llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h, line 1624
- external/bsd/ntp/dist/lib/isc/pthreads/include/isc/thread.h, line 49
- external/bsd/ntp/dist/ntpd/ntpd.c, line 344
- external/bsd/ntp/dist/sntp/libevent/test/regress_thread.h, line 38
- external/bsd/openldap/dist/libraries/libldap_r/thr_posix.c, line 202
- external/bsd/openldap/dist/libraries/liblmdb/mdb.c, line 329
- external/bsd/unbound/dist/testcode/checklocks.c, line 858
- external/bsd/unbound/dist/util/locks.h, line 174
- external/cddl/osnet/dist/head/thread.h, line 53
- external/cddl/osnet/dist/lib/libzfs/common/libzfs_diff.c, 2 times
- external/cddl/osnet/dist/lib/libzfs/common/libzfs_sendrecv.c, 4 times
- external/cddl/osnet/dist/tools/ctf/cvt/ctfmerge.c, line 753
- external/gpl2/gettext/dist/gettext-runtime/intl/lock.c, line 59
- external/gpl2/gettext/dist/gettext-runtime/tests/test-lock.c, line 100
- external/gpl2/gettext/dist/gettext-tools/gnulib-lib/lock.c, line 58
- external/gpl2/gettext/dist/gettext-tools/libgettextpo/lock.c, line 58
- external/gpl2/gettext/dist/gettext-tools/tests/gettext-6-prg.c, line 156
- external/gpl2/gettext/dist/gettext-tools/tests/gettext-7-prg.c, line 160
- external/gpl2/lvm2/dist/daemons/clvmd/clvmd.c, 2 times
- external/gpl2/lvm2/dist/daemons/dmeventd/dmeventd.c, line 1485
- external/gpl3/gcc/dist/libgcc/config/gthr-rtems.h, line 75
- external/gpl3/gcc/dist/libgcc/gthr-posix.h, 2 times
- external/gpl3/gcc/dist/libsanitizer/asan/asan_interceptors.cc, 2 times
- external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc, 3 times
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mac.cc, line 474
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_posix.h, line 73
- external/gpl3/gcc/dist/libsanitizer/tsan/tsan_interceptors.cc, 4 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.base/info-os.c, line 160
- external/gpl3/gdb/dist/gdb/testsuite/gdb.base/jit-attach-pie.c, line 59
- external/gpl3/gdb/dist/gdb/testsuite/gdb.base/siginfo-thread.c, line 81
- external/gpl3/gdb/dist/gdb/testsuite/gdb.btrace/enable-running.c, line 45
- external/gpl3/gdb/dist/gdb/testsuite/gdb.btrace/multi-thread-step.c, line 49
- external/gpl3/gdb/dist/gdb/testsuite/gdb.btrace/non-stop.c, line 42
- external/gpl3/gdb/dist/gdb/testsuite/gdb.cell/break.c, line 58
- external/gpl3/gdb/dist/gdb/testsuite/gdb.cell/bt.c, line 94
- external/gpl3/gdb/dist/gdb/testsuite/gdb.cell/data.c, line 66
- external/gpl3/gdb/dist/gdb/testsuite/gdb.cell/ea-cache.c, line 55
- external/gpl3/gdb/dist/gdb/testsuite/gdb.cell/fork.c, line 72
- external/gpl3/gdb/dist/gdb/testsuite/gdb.cell/mem-access.c, line 60
- external/gpl3/gdb/dist/gdb/testsuite/gdb.cell/size.c, line 81
- external/gpl3/gdb/dist/gdb/testsuite/gdb.mi/mi-pending.c, line 61
- external/gpl3/gdb/dist/gdb/testsuite/gdb.mi/non-stop-exit.c, line 50
- external/gpl3/gdb/dist/gdb/testsuite/gdb.mi/non-stop.c, line 76
- external/gpl3/gdb/dist/gdb/testsuite/gdb.mi/nsmoribund.c, line 69
- external/gpl3/gdb/dist/gdb/testsuite/gdb.mi/nsthrexec.c, line 46
- external/gpl3/gdb/dist/gdb/testsuite/gdb.multi/multi-attach.c, line 45
- external/gpl3/gdb/dist/gdb/testsuite/gdb.multi/tids.c, line 53
- external/gpl3/gdb/dist/gdb/testsuite/gdb.multi/watchpoint-multi.c, line 46
- external/gpl3/gdb/dist/gdb/testsuite/gdb.python/py-evthreads.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.python/py-inferior.c, line 79
- external/gpl3/gdb/dist/gdb/testsuite/gdb.python/py-record-btrace-threads.c, line 55
- external/gpl3/gdb/dist/gdb/testsuite/gdb.python/py-thrhandle.c, line 93
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/attach-into-signal.c, line 62
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.c, line 81
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/attach-slow-waitpid.c, line 71
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/attach-stopped.c, line 45
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/break-while-running.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/check-libthread-db.c, line 67
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/clone-thread_db.c, line 72
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/continue-pending-after-query.c, line 45
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/corethreads.c, line 43
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/dlopen-libpthread-lib.c, line 38
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/fork-child-threads.c, line 43
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/fork-plus-threads.c, line 53
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/fork-thread-pending.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/gcore-stale-thread.c, line 28
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/ia64-sigill.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/info-threads-cur-sal.c, line 30
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/leader-exit.c, line 29
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/local-watch-wrong-thread.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/manythreads.c, line 66
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/multi-create.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/multiple-step-overs.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/multiple-successive-infcall.c, line 108
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/names.c, line 92
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.c, line 122
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/no-unwaited-for-left.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/non-ldr-exc-1.c, line 60
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/non-ldr-exc-2.c, line 34
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/non-ldr-exc-3.c, line 37
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/non-ldr-exc-4.c, line 92
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/non-ldr-exit.c, line 38
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/print-threads.c, line 26
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/queue-signal.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/reconnect-signal.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/siginfo-threads.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/signal-command-handle-nopass.c, line 46
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.c, line 95
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/signal-delivered-right-thread.c, line 58
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/signal-sigtrap.c, line 43
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/sigthread.c, line 74
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/staticthreads.c, line 76
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/step-bg-decr-pc-switch-thread.c, line 52
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/step-over-lands-on-breakpoint.c, line 65
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 67
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/switch-threads.c, line 41
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/thread-execl.c, line 46
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/thread-specific-bp.c, line 37
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/thread_check.c, line 65
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/thread_events.c, line 47
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/threxit-hop-specific.c, line 40
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/tid-reuse.c, line 75
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/tls-core.c, line 36
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/tls-so_extern_main.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/tls.c, line 217
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/watchpoint-fork-child.c, line 80
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c, line 166
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/watchthreads-reorder.c, 2 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/watchthreads2.c, line 68
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/wp-replication.c, line 81
- external/gpl3/gdb/dist/gdb/testsuite/gdb.trace/ftrace-lock.c, line 81
- external/gpl3/gdb/dist/gdb/testsuite/gdb.trace/trace-mt.c, line 41
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/ex1.c, 2 times
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/sig12.c, line 34
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/sig9.c, line 31
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/thread3.c, 2 times
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/thread4.c, line 45
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/thread5.c, line 72
- external/lgpl3/mpfr/dist/tests/tconst_pi.c, line 77
- external/mpl/bind/dist/lib/isc/pthreads/include/isc/thread.h, line 55
- external/public-domain/sqlite/dist/sqlite3.c, line 29306
- external/public-domain/xz/dist/src/common/mythread.h, line 173
- external/zlib/pigz/dist/yarn.c, 2 times
- lib/libc/thread-stub/thread-stub.c, 2 times
- lib/libisns/isns_util.c, line 236
- lib/libpthread/thrd.c, line 139
- lib/librumphijack/hijack.c, line 2200
- lib/librumpuser/rumpuser_pth.c, line 127
- sbin/iscsid/iscsid_main.c, line 668
- sys/external/bsd/compiler_rt/dist/lib/asan/asan_interceptors.cc, 2 times
- sys/external/bsd/compiler_rt/dist/lib/asan/tests/asan_racy_double_free_test.cc, 2 times
- sys/external/bsd/compiler_rt/dist/lib/lsan/lsan_interceptors.cc, 3 times
- sys/external/bsd/compiler_rt/dist/lib/msan/msan_interceptors.cc, 3 times
- sys/external/bsd/compiler_rt/dist/lib/msan/tests/msan_test.cc, 5 times
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_mac.cc, line 614
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_posix.h, line 85
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/sanitizer_linux_test.cc, 3 times
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/sanitizer_posix_test.cc, line 49
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/sanitizer_pthread_wrappers.h, line 27
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc, 2 times
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/standalone_malloc_test.cc, line 84
- sys/external/bsd/compiler_rt/dist/lib/tsan/benchmarks/mini_bench_local.cc, line 44
- sys/external/bsd/compiler_rt/dist/lib/tsan/benchmarks/mini_bench_shared.cc, line 46
- sys/external/bsd/compiler_rt/dist/lib/tsan/benchmarks/start_many_threads.cc, line 46
- sys/external/bsd/compiler_rt/dist/lib/tsan/benchmarks/vts_many_threads_bench.cc, 2 times
- sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/tsan_interceptors.cc, 4 times
- sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/tsan_mutex.cc, line 197
- sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/tsan_thread.cc, 2 times
- sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/tsan_mutex_test.cc, 3 times
- sys/rump/net/lib/libvirtif/virtif_user.c, line 285
- tests/fs/common/fstest_lfs.c, line 117
- tests/fs/common/snapshot.c, line 212
- tests/fs/ffs/t_fifos.c, 4 times
- tests/fs/nfs/t_mountd.c, line 104
- tests/fs/tmpfs/t_renamerace.c, 2 times
- tests/fs/vfs/t_renamerace.c, 7 times
- tests/fs/vfs/t_rmdirrace.c, 2 times
- tests/kernel/t_filedesc.c, line 100
- tests/kernel/t_timeleft.c, line 96
- tests/lib/libc/gen/t_nice.c, line 179
- tests/lib/libc/net/h_nsd_recurse.c, line 106
- tests/lib/libc/stdlib/t_getenv_thread.c, 4 times
- tests/lib/libc/sys/t_getpid.c, line 119
- tests/lib/libc/sys/t_ptrace_wait.c, 2 times
- tests/lib/libc/tls/t_tls_dlopen.c, 2 times
- tests/lib/libc/tls/t_tls_dynamic.c, 2 times
- tests/lib/libc/tls/t_tls_static.c, 2 times
- tests/lib/libpthread/h_resolv.c, line 208
- tests/lib/libpthread/t_barrier.c, line 92
- tests/lib/libpthread/t_cond.c, 8 times
- tests/lib/libpthread/t_condwait.c, line 113
- tests/lib/libpthread/t_detach.c, line 78
- tests/lib/libpthread/t_equal.c, 2 times
- tests/lib/libpthread/t_fork.c, line 90
- tests/lib/libpthread/t_join.c, 8 times
- tests/lib/libpthread/t_kill.c, line 138
- tests/lib/libpthread/t_mutex.c, 7 times
- tests/lib/libpthread/t_name.c, line 93
- tests/lib/libpthread/t_once.c, 2 times
- tests/lib/libpthread/t_preempt.c, line 118
- tests/lib/libpthread/t_sem.c, 2 times
- tests/lib/libpthread/t_sigmask.c, line 196
- tests/lib/libpthread/t_sleep.c, line 96
- tests/lib/libpthread/t_swapcontext.c, line 103
- tests/lib/librumpclient/h_execthr.c, line 135
- tests/lib/semaphore/sem.c, 2 times
- tests/libexec/ld.elf_so/h_thread_local_dtor.c, line 90
- tests/modules/t_kcov.c, 4 times
- tests/rump/rumpkern/h_client/h_reconcli.c, 5 times
- tests/rump/rumpkern/h_client/h_stresscli.c, line 179
- usr.sbin/nfsd/nfsd.c, line 565
- usr.sbin/tprof/tprof.c, line 245