summaryrefslogtreecommitdiff
path: root/src/mingw_functions.c
diff options
context:
space:
mode:
authorBryan Ischo <bryan@ischo.com>2008-08-14 12:14:46 +0000
committerBryan Ischo <bryan@ischo.com>2008-08-14 12:14:46 +0000
commit4e841bcc1010f8dd36031c57460908c368c5cb9f (patch)
tree3189d40ff2ad5e871df575a2d4d80dbb1e4d0e4d /src/mingw_functions.c
parent7fd73adff17c0511cf2c09da16d46d1a8e608866 (diff)
downloadceph-libs3-4e841bcc1010f8dd36031c57460908c368c5cb9f.tar.gz
* Support GNUTLS on Windows. But - it doesn't work. Maybe my GNUTLS
library is too old? Since openssl does work, I expect that I will branch this and revert.
Diffstat (limited to 'src/mingw_functions.c')
-rw-r--r--src/mingw_functions.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/mingw_functions.c b/src/mingw_functions.c
index ce86c8e..5ba2211 100644
--- a/src/mingw_functions.c
+++ b/src/mingw_functions.c
@@ -33,27 +33,35 @@ unsigned long pthread_self()
}
-void pthread_mutex_init(pthread_mutex_t *mutex, void *v)
+int pthread_mutex_init(pthread_mutex_t *mutex, void *v)
{
InitializeCriticalSection(&(mutex->criticalSection));
+
+ return 0;
}
-void pthread_mutex_lock(pthread_mutex_t *mutex)
+int pthread_mutex_lock(pthread_mutex_t *mutex)
{
EnterCriticalSection(&(mutex->criticalSection));
+
+ return 0;
}
-void pthread_mutex_unlock(pthread_mutex_t *mutex)
+int pthread_mutex_unlock(pthread_mutex_t *mutex)
{
LeaveCriticalSection(&(mutex->criticalSection));
+
+ return 0;
}
-void pthread_mutex_destroy(pthread_mutex_t *mutex)
+int pthread_mutex_destroy(pthread_mutex_t *mutex)
{
DeleteCriticalSection(&(mutex->criticalSection));
+
+ return 0;
}