Simplify thread spawning

The `isc_trampoline` module had a lot of machinery to support stable
thread IDs for use by hazard pointers. But the hazard pointer code
is gone, and the `isc_loop` module now has its own per-loop thread
IDs.

The trampoline machinery seems over-complicated for its remaining
tasks, so move the per-thread initialization into `isc/thread.c`,
and delete the rest.
This commit is contained in:
Tony Finch
2023-01-02 19:56:27 +00:00
parent 1736900b4e
commit 555690a3c9
8 changed files with 67 additions and 313 deletions

View File

@@ -30,8 +30,6 @@
#include <isc/lang.h>
#include <isc/result.h>
extern thread_local size_t isc_tid_v;
ISC_LANG_BEGINDECLS
typedef pthread_t isc_thread_t;