summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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() {