opnsense-src/lib/libthr/thread
Konstantin Belousov 6b96e7a573 libthr/amd64: do not set THR_C_RUNTIME for thr_new() if the main thread did used AMD64_SET_TLSBASE
It is up to the code that organizes the runtime to properly set the
signal handler, and to set %fsbase if libthr signal handler is to be
called. The change should leave the CPU state on the signal handler
entry identical to what it was before introduction of TLSBASE, for code
that provides its own startup and thread pointer, but still calls into
libthr as a hack.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2025-06-22 09:14:07 +03:00
..
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
thr_affinity.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_attr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_autoinit.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_barrier.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_barrierattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_cancel.c pthread_setcancelstate(3): make it async-signal-safe 2024-12-28 19:01:50 +02:00
thr_clean.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_concurrency.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_cond.c libthr: restore _pthread_cond_timedwait 2024-03-12 21:03:14 +00:00
thr_condattr.c Implement CLOCK_TAI 2025-06-12 12:25:31 -06:00
thr_create.c libthr/amd64: do not set THR_C_RUNTIME for thr_new() if the main thread did used AMD64_SET_TLSBASE 2025-06-22 09:14:07 +03:00
thr_ctrdtr.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_detach.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_equal.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_event.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_exit.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_fork.c libthr: allow very early atfork registration 2024-11-13 19:33:44 -06:00
thr_getcpuclockid.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_getprio.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_getschedparam.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_getthreadid_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_info.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_init.c libthr/amd64: do not set THR_C_RUNTIME for thr_new() if the main thread did used AMD64_SET_TLSBASE 2025-06-22 09:14:07 +03:00
thr_join.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_kern.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_kill.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_list.c libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
thr_main_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_malloc.c libthr: add __thr_aligned_alloc_offset() 2025-04-25 14:48:09 +03:00
thr_multi_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_mutex.c pthread_mutex_trylock(): init libthr if needed 2025-01-14 19:55:07 +02:00
thr_mutexattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_once.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_printf.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_private.h libthr/amd64: do not set THR_C_RUNTIME for thr_new() if the main thread did used AMD64_SET_TLSBASE 2025-06-22 09:14:07 +03:00
thr_pshared.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_pspinlock.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_resume_np.c libc, libthr: coordinate stubs for pthread_{suspend,resume}_all_np 2024-11-13 20:48:05 -06:00
thr_rtld.c thr_rtld: accept read lock requests while owning the lock for write 2025-05-02 21:08:09 +03:00
thr_rwlock.c libthr: move __always_inline to canonical position 2024-06-24 10:05:58 -07:00
thr_rwlockattr.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_self.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_sem.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_setprio.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_setschedparam.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_sig.c libthr: add stable user interface for sigfastblock(2) 2025-05-19 09:07:43 +03:00
thr_sigqueue.c libthr: add pthread_sigqueue(3) 2024-04-23 19:51:22 +03:00
thr_single_np.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_sleepq.c libthr: switch thread and sleepq memory allocator to crt from libc malloc 2025-01-14 19:55:08 +02:00
thr_spec.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_spinlock.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_stack.c rtld: avoid division in __thr_map_stacks_exec() 2024-07-30 02:57:33 +03:00
thr_suspend_np.c libc, libthr: coordinate stubs for pthread_{suspend,resume}_all_np 2024-11-13 20:48:05 -06:00
thr_switch_np.c pthread_switch_add_np(3): remove 2025-05-19 09:07:43 +03:00
thr_symbols.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
thr_syscalls.c Provide user interface to retrieve reported extended errors 2025-05-31 22:52:42 +03:00
thr_umtx.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00
thr_umtx.h libthr: move _umtx_op_err() to libsys 2024-02-05 20:34:56 +00:00
thr_yield.c libthr: remove explicit sys/cdefs.h includes 2024-03-06 09:25:13 +02:00