Make timeouts default to infinity in Thread

This commit is contained in:
Vinnie Falco
2013-07-29 07:51:46 -07:00
parent 08ff5f02b1
commit 933ba3c7d6

View File

@@ -113,7 +113,7 @@ public:
value in here will wait forever. value in here will wait forever.
@see signalThreadShouldExit, threadShouldExit, waitForThreadToExit, isThreadRunning @see signalThreadShouldExit, threadShouldExit, waitForThreadToExit, isThreadRunning
*/ */
void stopThread (int timeOutMilliseconds); void stopThread (int timeOutMilliseconds = -1);
//============================================================================== //==============================================================================
/** Returns true if the thread is currently active */ /** 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. @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. /** Wakes up the thread.