synced with main repository

This commit is contained in:
Guenter Obiltschnig
2008-01-28 17:23:19 +00:00
parent fd1d5aed5f
commit da49971d0f
808 changed files with 1154 additions and 892 deletions

View File

@@ -1,7 +1,7 @@
//
// Timer.h
//
// $Id: //poco/Main/Foundation/include/Poco/Timer.h#3 $
// $Id: //poco/svn/Foundation/include/Poco/Timer.h#3 $
//
// Library: Foundation
// Package: Threading
@@ -44,6 +44,7 @@
#include "Poco/Runnable.h"
#include "Poco/Mutex.h"
#include "Poco/Event.h"
#include "Poco/Thread.h"
namespace Poco {
@@ -92,11 +93,25 @@ public:
///
/// The timer thread is taken from the global default thread pool.
void start(const AbstractTimerCallback& method, Thread::Priority priority);
/// Starts the timer in a thread with the given priority.
/// Create the TimerCallback as follows:
/// TimerCallback<MyClass> callback(*this, &MyClass::onTimer);
/// timer.start(callback);
///
/// The timer thread is taken from the global default thread pool.
void start(const AbstractTimerCallback& method, ThreadPool& threadPool);
/// Starts the timer.
/// Create the TimerCallback as follows:
/// TimerCallback<MyClass> callback(*this, &MyClass::onTimer);
/// timer.start(callback);
void start(const AbstractTimerCallback& method, Thread::Priority priority, ThreadPool& threadPool);
/// Starts the timer in a thread with the given priority.
/// Create the TimerCallback as follows:
/// TimerCallback<MyClass> callback(*this, &MyClass::onTimer);
/// timer.start(callback);
void stop();
/// Stops the timer. If the callback method is currently running