summaryrefslogtreecommitdiff
path: root/tests/threads/basic.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: handle life without threadsethomson/clar_threadsEdward Thomson2016-11-181-1/+7
|
* threads: introduce `git_thread_exit`Edward Thomson2016-11-181-0/+27
| | | | | | | | | | Introduce `git_thread_exit`, which will allow threads to terminate at an arbitrary time, returning a `void *`. On Windows, this means that we need to store the current `git_thread` in TLS, so that we can set its `return` value when terminating. We cannot simply use `ExitThread`, since Win32 returns `DWORD`s from threads; we return `void *`.
* Rename git_threads_ to git_libgit2_Carlos Martín Nieto2014-11-081-2/+2
| | | | | | This describes their purpose better, as we now initialize ssl and some other global stuff in there. Calling the init function is not something which has been optional for a while now.
* global: free the error message when exiting a threadcmn/free-tls-errorCarlos Martín Nieto2014-09-141-0/+14
| | | | | When we free the global state at thread termination, we must also free the error message in order not to leak the string once per thread.
* Rename tests-clar to testsBen Straub2013-11-141-0/+36