diff options
author | Philip Kelley <phkelley@microsoft.com> | 2014-06-07 13:56:39 -0400 |
---|---|---|
committer | Philip Kelley <phkelley@microsoft.com> | 2014-06-07 14:40:42 -0400 |
commit | 1b4e29b7f68ce80bb01fd878f6ddc6cf20819581 (patch) | |
tree | 84b41c3100b3ce52fbfee514891927a16f8594bb /src/win32/pthread.h | |
parent | fb5917679dd1cc0ee50d1d88893c07cbcd82471f (diff) | |
download | libgit2-1b4e29b7f68ce80bb01fd878f6ddc6cf20819581.tar.gz |
React to review feedback
Diffstat (limited to 'src/win32/pthread.h')
-rw-r--r-- | src/win32/pthread.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/win32/pthread.h b/src/win32/pthread.h index a15504ed5..e4826ca7f 100644 --- a/src/win32/pthread.h +++ b/src/win32/pthread.h @@ -19,7 +19,8 @@ typedef struct { HANDLE thread; void *(*proc)(void *); - void *value; + void *param; + void *result; } git_win32_thread; typedef int pthread_mutexattr_t; @@ -51,6 +52,17 @@ int git_win32__thread_join( git_win32_thread *, void **); +#ifdef GIT_THREADS + +typedef git_win32_thread git_thread; + +#define git_thread_create(git_thread_ptr, attr, start_routine, arg) \ + git_win32__thread_create(git_thread_ptr, attr, start_routine, arg) +#define git_thread_join(git_thread_ptr, status) \ + git_win32__thread_join(git_thread_ptr, status) + +#endif + int pthread_mutex_init( pthread_mutex_t *GIT_RESTRICT mutex, const pthread_mutexattr_t *GIT_RESTRICT mutexattr); |