Improvements to PlatformHelper::waitFor(), BackgroundWorker and Time::sleep()
requested to merge 23-waitfor-does-not-allow-intervals-greater-than-1-second-on-some-platforms into dev-v2
Improvements for core::PlatformHelper::waitFor()
.
New Features
- [core]:
-
PlatformHelper
: added functionswaitFor(const uin64_t& seconds, const uint64_t& nanoSeconds)
andwaitFor(const timespec& duration)
for precise sleeping -
PlatformHelper
: RenamedwaitFor(const unsigned int microSeconds)
towaitForAccurate(...)
. This method compensates timer quantization errors on supported platforms. -
Time
: now uses newwaitFor
with nanosecond precision. This also fixes a bug with delays > 1s (see below)
-
- [parallel]:
-
BackgroundWorker
: now usesTime::sleep
for sleeping
-
Bug Fixes
- [core]:
-
PlatformHelper::waitFor/Time:sleep
: Delays greater than one second were not executed properly on ALL platforms: Closes #23 (closed)
-
Edited by Ghost User