summaryrefslogtreecommitdiff
path: root/src/runtime.c
Commit message (Collapse)AuthorAgeFilesLines
* libgit2: provide init_count of the libraryEdward Thomson2020-12-091-0/+15
| | | | | | A function to provide the initialization count of the library; this is subject to race conditions but is useful for a naive determination as to whether the library has been initialized or not.
* threads: give atomic functions the git_atomic prefixEdward Thomson2020-12-061-1/+1
|
* threads: rename git_atomic to git_atomic32Edward Thomson2020-12-061-8/+8
| | | | | Clarify the `git_atomic` type and functions now that we have a 64 bit version as well (`git_atomic64`).
* util: move git__noop into the util headerEdward Thomson2020-12-051-2/+2
| | | | | The git__noop function is more largely useful; move it into the util header. (And reduce the number of underscores.)
* Fix the `-DTHREADSAFE=OFF` buildlhchavez2020-11-021-2/+2
| | | | | | This change avoids using the `(void)0` construct for some of the mutex `#define`s, since that makes the "return type" of those "functions" to be `void` instead of `int`.
* runtime: move init/shutdown into the "runtime"Edward Thomson2020-10-111-0/+147
Provide a mechanism for system components to register for initialization and shutdown of the libgit2 runtime.