From 3a4b0775bb1a35d1281fe0e2b5d4530ab896b9ce Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Mon, 21 Nov 2011 10:58:41 +0100 Subject: Bugfix. --- src/lock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lock.cpp b/src/lock.cpp index 5c37bea..58cf626 100644 --- a/src/lock.cpp +++ b/src/lock.cpp @@ -37,7 +37,7 @@ void Lock::lock() { } int Lock::test() { - pthread_mutex_trylock(&(this->mutex)); + return pthread_mutex_trylock(&(this->mutex)); } void Lock::unlock() { -- cgit v1.2.3