diff options
Diffstat (limited to 'src/win32/pthread.h')
-rw-r--r-- | src/win32/pthread.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/win32/pthread.h b/src/win32/pthread.h index b194cbfa7..a219a0137 100644 --- a/src/win32/pthread.h +++ b/src/win32/pthread.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 the libgit2 contributors + * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. @@ -21,6 +21,7 @@ typedef int pthread_condattr_t; typedef int pthread_attr_t; typedef CRITICAL_SECTION pthread_mutex_t; typedef HANDLE pthread_t; +typedef HANDLE pthread_cond_t; #define PTHREAD_MUTEX_INITIALIZER {(void*)-1}; @@ -35,6 +36,12 @@ int pthread_mutex_destroy(pthread_mutex_t *); int pthread_mutex_lock(pthread_mutex_t *); int pthread_mutex_unlock(pthread_mutex_t *); +int pthread_cond_init(pthread_cond_t *, const pthread_condattr_t *); +int pthread_cond_destroy(pthread_cond_t *); +int pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *); +int pthread_cond_signal(pthread_cond_t *); +/* pthread_cond_broadcast is not supported on Win32 yet. */ + int pthread_num_processors_np(void); #endif |