global: separate global state from thread-local state
Our "global initialization" has accumulated some debris over the years. It was previously responsible for both running the various global initializers (that set up various subsystems) _and_ setting up the "global state", which is actually the thread-local state for things like error reporting. Separate the thread local state out into "threadstate". Use the normal subsystem initialization functions that we already have to set it up. This makes both the global initialization system and the threadstate system simpler to reason about.
Showing
src/threadstate.c
0 → 100644
src/threadstate.h
0 → 100644
Please
register
or
sign in
to comment