diff options
Diffstat (limited to 'src/lock.cpp')
-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() { |