Commit f26f2b80 by Vicent Martí

Merge pull request #177 from kellypleahy/topic/fix-delete-mutex

Fix bug in the way pthead_mutex_t was being destroyed in win32.
parents cd7ad3c6 16a5c304
...@@ -55,9 +55,8 @@ int pthread_mutex_init(pthread_mutex_t *GIT_RESTRICT mutex, ...@@ -55,9 +55,8 @@ int pthread_mutex_init(pthread_mutex_t *GIT_RESTRICT mutex,
int pthread_mutex_destroy(pthread_mutex_t *mutex) int pthread_mutex_destroy(pthread_mutex_t *mutex)
{ {
int ret; DeleteCriticalSection(mutex);
ret = CloseHandle(mutex); return 0;
return -(!ret);
} }
int pthread_mutex_lock(pthread_mutex_t *mutex) int pthread_mutex_lock(pthread_mutex_t *mutex)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment