22#ifndef INCLUDE_OLA_THREAD_SCHEDULERINTERFACE_H_
23#define INCLUDE_OLA_THREAD_SCHEDULERINTERFACE_H_
46class SchedulerInterface {
48 SchedulerInterface() {}
49 virtual ~SchedulerInterface() {}
A 0 argument callback which can be called multiple times.
Definition Callback.h:129
A 0 argument callback which deletes itself after it's run.
Definition Callback.h:141
virtual void RemoveTimeout(timeout_id id)=0
Cancel an existing timeout.
virtual timeout_id RegisterRepeatingTimeout(const ola::TimeInterval &period, Callback0< bool > *callback)=0
Execute a callback periodically.
virtual timeout_id RegisterRepeatingTimeout(unsigned int period, Callback0< bool > *callback)=0
Execute a callback periodically.
virtual timeout_id RegisterSingleTimeout(unsigned int delay, SingleUseCallback0< void > *callback)=0
Execute a callback after a certain time interval.
virtual timeout_id RegisterSingleTimeout(const ola::TimeInterval &delay, SingleUseCallback0< void > *callback)=0
Execute a callback after a certain time interval.
Threads and synchronization mechanisms.
Definition ConsumerThread.cpp:25
static const timeout_id INVALID_TIMEOUT
An invalid / uninitialized timeout_id.
Definition SchedulerInterface.h:39
void * timeout_id
A timeout handle which can later be used to cancel a timeout.
Definition SchedulerInterface.h:34
The namespace containing all OLA symbols.
Definition Credentials.cpp:44