From 8f1fd9c11ea45834c943a1b88293a03d00555add Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Mon, 29 Jul 2013 07:51:46 -0700 Subject: [PATCH] Make timeouts default to infinity in Thread --- Subtrees/beast/modules/beast_core/threads/beast_Thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Subtrees/beast/modules/beast_core/threads/beast_Thread.h b/Subtrees/beast/modules/beast_core/threads/beast_Thread.h index 0dda1f9c4..2a3027264 100644 --- a/Subtrees/beast/modules/beast_core/threads/beast_Thread.h +++ b/Subtrees/beast/modules/beast_core/threads/beast_Thread.h @@ -113,7 +113,7 @@ public: value in here will wait forever. @see signalThreadShouldExit, threadShouldExit, waitForThreadToExit, isThreadRunning */ - void stopThread (int timeOutMilliseconds); + void stopThread (int timeOutMilliseconds = -1); //============================================================================== /** Returns true if the thread is currently active */ @@ -205,7 +205,7 @@ public: @returns true if the event has been signalled, false if the timeout expires. */ - bool wait (int timeOutMilliseconds) const; + bool wait (int timeOutMilliseconds = -1) const; /** Wakes up the thread.