added Clock class which provides a monotonic clock on most platforms and is now used by Poco::Timer, Poco::Stopwatch, Poco::TimedNotificationQueue and Poco::UtilTimer to avoid issues when the system time is changed

This commit is contained in:
Guenter Obiltschnig
2013-12-12 18:33:29 +01:00
parent 5edb90c48e
commit ac2b26fcb9
47 changed files with 884 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
//
// Timer.h
//
// $Id: //poco/1.4/Foundation/include/Poco/Timer.h#1 $
// $Id: //poco/1.4/Foundation/include/Poco/Timer.h#2 $
//
// Library: Foundation
// Package: Threading
@@ -45,7 +45,7 @@
#include "Poco/Mutex.h"
#include "Poco/Event.h"
#include "Poco/Thread.h"
#include "Poco/Timestamp.h"
#include "Poco/Clock.h"
namespace Poco {
@@ -169,7 +169,7 @@ private:
Event _done;
long _skipped;
AbstractTimerCallback* _pCallback;
Timestamp _nextInvocation;
Clock _nextInvocation;
mutable FastMutex _mutex;
Timer(const Timer&);