From 933ba3c7d6acb189966f3b774da7eb7512c71ca9 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 --- modules/beast_core/threads/beast_Thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/beast_core/threads/beast_Thread.h b/modules/beast_core/threads/beast_Thread.h index 0dda1f9c4..2a3027264 100644 --- a/modules/beast_core/threads/beast_Thread.h +++ b/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.