Mercurial > libdvdnav.hg
changeset 402:3776e1559236 src
Fix pthread_mutex_destroy macro for Win32
Win32 has a DestroyCriticalSection call that is the equivalent
to pthread_mutex_destroy. The macro for the Win32 port should
have this.
The VLC project fixed the Win32 macro for pthread_mutex_destroy
about 3 years ago. So this is a well tested patch according to
them.
Thanks goes to Jean-Baptiste for submitting this patch to the
dvdnav-discuss list.
Patch by Jean-Baptiste Kempf /jb*videolan#org\
author | erik |
---|---|
date | Thu, 27 May 2010 15:26:27 +0000 |
parents | 390fbf2a9602 |
children | 1ce807c12563 |
files | dvdnav_internal.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dvdnav_internal.h Tue May 25 23:33:59 2010 +0000 +++ b/dvdnav_internal.h Thu May 27 15:26:27 2010 +0000 @@ -34,7 +34,7 @@ #define pthread_mutex_init(a, b) InitializeCriticalSection(a) #define pthread_mutex_lock(a) EnterCriticalSection(a) #define pthread_mutex_unlock(a) LeaveCriticalSection(a) -#define pthread_mutex_destroy(a) +#define pthread_mutex_destroy(a) DeleteCriticalSection(a) #ifndef HAVE_GETTIMEOFDAY /* replacement gettimeofday implementation */