mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 07:14:46 +02:00
synced with main repository
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user