summaryrefslogtreecommitdiff
path: root/src/win32/thread.h
Commit message (Collapse)AuthorAgeFilesLines
* threads: introduce `git_thread_exit`Edward Thomson2016-11-181-0/+2
| | | | | | | | | | 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 *`.
* threads: add platform-independent thread initialization functionPatrick Steinhardt2016-06-201-2/+2
|
* win32: rename pthread.{c,h} to thread.{c,h}Patrick Steinhardt2016-06-201-0/+62
The old pthread-file did re-implement the pthreads API with exact symbol matching. As the thread-abstraction has now been split up between Unix- and Windows-specific files within the `git_` namespace to avoid symbol-clashes between libgit2 and pthreads, the rewritten wrappers have nothing to do with pthreads anymore. Rename the Windows-specific pthread-files to honor this change.