diff options
Diffstat (limited to 'CommonLibs/Threads.cpp')
-rw-r--r-- | CommonLibs/Threads.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CommonLibs/Threads.cpp b/CommonLibs/Threads.cpp index de6520b..dce7eda 100644 --- a/CommonLibs/Threads.cpp +++ b/CommonLibs/Threads.cpp @@ -95,11 +95,11 @@ Mutex::~Mutex() /** Block for the signal up to the cancellation timeout. */ -void Signal::wait(Mutex& wMutex, unsigned timeout) const +int Signal::wait(Mutex& wMutex, unsigned timeout) const { Timeval then(timeout); struct timespec waitTime = then.timespec(); - pthread_cond_timedwait(&mSignal,&wMutex.mMutex,&waitTime); + return pthread_cond_timedwait(&mSignal,&wMutex.mMutex,&waitTime); } |