diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-05-12 13:08:22 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-10-11 14:42:19 +0100 |
| commit | fe12423a91015e6116773340a8936fece3251339 (patch) | |
| tree | 3b22a69b80f5380027b6138b0403f843280e9b43 /src/win32 | |
| parent | 2e5f27c7dc81618c185e68a1c6129dd99c69edab (diff) | |
| download | libgit2-fe12423a91015e6116773340a8936fece3251339.tar.gz | |
init: move thread init to git_global_threads_init
Instead of treating win32 thread initialization specially in the win32
git_libgit2_init function, add a git_global_threads_init function.
Diffstat (limited to 'src/win32')
| -rw-r--r-- | src/win32/thread.c | 2 | ||||
| -rw-r--r-- | src/win32/thread.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/thread.c b/src/win32/thread.c index 42dba7f97..0936c3168 100644 --- a/src/win32/thread.c +++ b/src/win32/thread.c @@ -35,7 +35,7 @@ static DWORD WINAPI git_win32__threadproc(LPVOID lpParameter) return CLEAN_THREAD_EXIT; } -int git_threads_init(void) +int git_threads_global_init(void) { HMODULE hModule = GetModuleHandleW(L"kernel32"); diff --git a/src/win32/thread.h b/src/win32/thread.h index 41cbf015b..8305036b4 100644 --- a/src/win32/thread.h +++ b/src/win32/thread.h @@ -35,7 +35,7 @@ typedef struct { } native; } git_rwlock; -int git_threads_init(void); +int git_threads_global_init(void); int git_thread_create(git_thread *GIT_RESTRICT, void *(*) (void *), |
