summaryrefslogtreecommitdiffstats
path: root/lib/qpthreads.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/qpthreads.h')
-rw-r--r--lib/qpthreads.h4
1 files changed, 2 insertions, 2 deletions
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
} ;
} ;