diff options
author | Tim Besard <tim.besard@gmail.com> | 2011-11-21 10:58:41 +0100 |
---|---|---|
committer | Tim Besard <tim.besard@gmail.com> | 2011-11-21 10:58:41 +0100 |
commit | 3a4b0775bb1a35d1281fe0e2b5d4530ab896b9ce (patch) | |
tree | cc60ff22f1d53795785511bd03cb2fc7fea84e0d | |
parent | f70080b4a8145bc11dd2877ceefb191b77f96772 (diff) |
Bugfix.
-rw-r--r-- | src/lock.cpp | 2 |
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() { |