From 2c282bd4752f5eae9d5e40d687fdc6af2f203c91 Mon Sep 17 00:00:00 2001 From: "Chris Hall (GMCH)" Date: Mon, 7 Dec 2009 12:40:11 +0000 Subject: Fixed qpt_mutex_unlock() (debug version). --- lib/qpthreads.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/qpthreads.h') diff --git a/lib/qpthreads.h b/lib/qpthreads.h index 65e64dbf..1c51a9ee 100644 --- a/lib/qpthreads.h +++ b/lib/qpthreads.h @@ -290,9 +290,9 @@ qpt_mutex_unlock(qpt_mutex_t* mx) /* do nothing if mx == NULL */ #if defined(NDEBUG) && defined(NDEBUG_QPTHREADS) pthread_mutex_unlock(mx) ; #else - int err = pthread_mutex_lock(mx) ; + int err = pthread_mutex_unlock(mx) ; if (err != 0) - zabort_err("pthread_mutex_lock failed", err) ; + zabort_err("pthread_mutex_unlock failed", err) ; #endif } ; } ; -- cgit v1.2.3