diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-09 16:43:48 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-09 16:43:48 +0000 |
commit | b331963ba68c46c2370c7ab8a531f3a8d85c1c8d (patch) | |
tree | 2ffd01f0ac8763d67f31db6b239defa39495d07d /src/htsthread.c | |
parent | f48114006deced315348925ba36af3cb6a022324 (diff) |
assert cleanup.
Diffstat (limited to 'src/htsthread.c')
-rw-r--r-- | src/htsthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htsthread.c b/src/htsthread.c index 364757b..143c22c 100644 --- a/src/htsthread.c +++ b/src/htsthread.c @@ -196,7 +196,7 @@ HTSEXT_API void hts_mutexlock(htsmutex * mutex) { } assertf(*mutex != NULL); #ifdef _WIN32 - assert((*mutex)->handle != NULL); + assertf((*mutex)->handle != NULL); WaitForSingleObject((*mutex)->handle, INFINITE); #else pthread_mutex_lock(&(*mutex)->handle); @@ -206,7 +206,7 @@ HTSEXT_API void hts_mutexlock(htsmutex * mutex) { HTSEXT_API void hts_mutexrelease(htsmutex * mutex) { assertf(mutex != NULL && *mutex != NULL); #ifdef _WIN32 - assert((*mutex)->handle != NULL); + assertf((*mutex)->handle != NULL); ReleaseMutex((*mutex)->handle); #else pthread_mutex_unlock(&(*mutex)->handle); |