summaryrefslogtreecommitdiff
path: root/src/threadstate.c
Commit message (Collapse)AuthorAgeFilesLines
* #6028: Check if `threadstate->error_t.message` is not `git_buf__initbuf` ↵Miguel Arroz2021-09-021-1/+2
| | | | | | before freeing. This follows the same principle as `buffer.c` where the same check is done before freeing the buffer. It fixes the crash described in #6028.
* Replace global storage TLS with new interfaceethomson/tlsdataTyler Ang-Wanek2020-12-081-87/+15
|
* threadstate: rename tlsdata when building w/o threadsEdward Thomson2020-10-141-1/+1
|
* runtime: move init/shutdown into the "runtime"Edward Thomson2020-10-111-11/+5
| | | | | Provide a mechanism for system components to register for initialization and shutdown of the libgit2 runtime.
* global: separate global state from thread-local stateEdward Thomson2020-10-111-0/+161
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.