mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
remove sleep calls from Runnable
This commit is contained in:
@@ -58,11 +58,6 @@ public:
|
||||
virtual void run() = 0;
|
||||
/// Do whatever the thread needs to do. Must
|
||||
/// be overridden by subclasses.
|
||||
|
||||
protected:
|
||||
void sleep(long milliseconds);
|
||||
|
||||
bool trySleep(long milliseconds);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@ public:
|
||||
bool isRunning() const;
|
||||
/// Returns true if the thread is running.
|
||||
|
||||
bool trySleep(long milliseconds);
|
||||
static bool trySleep(long milliseconds);
|
||||
/// Starts an interruptible sleep. When trySleep() is called,
|
||||
/// the thread will remain suspended until:
|
||||
/// - the timeout expires or
|
||||
|
||||
Reference in New Issue
Block a user