mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
- fixed PS build script environment vars generation
- fixed MongoDB 64-bit std::size_t warnings - added Thread::trySleep()/wakeUp() and tests
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
|
||||
#include "Poco/Runnable.h"
|
||||
#include "Poco/Thread.h"
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -50,4 +51,16 @@ Runnable::~Runnable()
|
||||
}
|
||||
|
||||
|
||||
void Runnable::sleep(long milliseconds)
|
||||
{
|
||||
Thread::sleep(milliseconds);
|
||||
}
|
||||
|
||||
|
||||
void Runnable::trySleep(long milliseconds)
|
||||
{
|
||||
Thread::current()->trySleep(milliseconds);
|
||||
}
|
||||
|
||||
|
||||
} // namespace Poco
|
||||
|
||||
Reference in New Issue
Block a user