summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Besard <tim.besard@gmail.com>2011-11-21 10:58:41 +0100
committerTim Besard <tim.besard@gmail.com>2011-11-21 10:58:41 +0100
commit3a4b0775bb1a35d1281fe0e2b5d4530ab896b9ce (patch)
treecc60ff22f1d53795785511bd03cb2fc7fea84e0d
parentf70080b4a8145bc11dd2877ceefb191b77f96772 (diff)
Bugfix.
-rw-r--r--src/lock.cpp2
1 files changed, 1 insertions, 1 deletions
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() {