8#include "Arp/System/Core/event.hxx" 
    9#include "Arp/System/Core/TypeName.hxx" 
   10#include "Arp/System/Commons/Logging.h" 
   13namespace Arp { 
namespace System { 
namespace Ve
 
   18namespace Arp { 
namespace System { 
namespace Commons { 
namespace Chrono
 
   21using namespace Arp::System::Ve;
 
   62    Timer(
size_t interval, 
const String& name, 
size_t priority, 
size_t cpuAffinity = 0);
 
   86    static void TimerServiceCallback(
void* pThis);
 
   93    ITimerService*  pTimerService;
 
   94    bool            isRunning = 
false;
 
This class represents the Arp String. The implementation is based on std::string.
Definition: String.hpp:39
 
Use this class to register and invoke several delegates (function pointer in OOP design).
Definition: event.hxx:32
 
High resolution timer for interval based executions.
Definition: Timer.hpp:55
 
size_t GetInterval(void) const
Returns the interval value in microseconds.
Definition: Timer.cpp:92
 
void SetPriority(size_t value)
Sets a new scheduling priority for the timer.
Definition: Timer.cpp:136
 
size_t GetCpuAffinity(void) const
Returns the current used CPU affinity mask.
Definition: Timer.cpp:112
 
void SetInterval(size_t interval)
Changes the interval in which the assigned methods are called.
Definition: Timer.cpp:84
 
void Start(void)
Starts the execution of the timer.
Definition: Timer.cpp:152
 
void Stop(void)
Stops the execution of the timer.
Definition: Timer.cpp:159
 
void SetCpuAffinity(size_t affinity)
Pins the timer to a specific CPUs inside a multiprocessor system.
Definition: Timer.cpp:102
 
NotifyEvent Notify
List of class methods and classes that are called periodically whenever the predefined interval is ex...
Definition: Timer.hpp:68
 
Timer(size_t interval, const String &name, size_t priority, size_t cpuAffinity=0)
Constructs an Timer instance.
Definition: Timer.cpp:26
 
~Timer(void)
Destructs this instance and frees all resources.
Definition: Timer.cpp:37
 
event< void > NotifyEvent
Definition of list of delegates to be called when timer expires.
Definition: Timer.hpp:59
 
const String & GetName(void) const
Returns the current name of the timer.
Definition: Timer.cpp:128
 
size_t GetPriority(void) const
Returns the current scheduling priority of the timer.
Definition: Timer.cpp:144
 
bool IsRunning(void) const
Checks if the timer is running, i.e. Start was already invoked.
Definition: Timer.cpp:168
 
void SetName(const String &value)
Sets a new name for the timer.
Definition: Timer.cpp:120
 
Derive from this class to inherit logging functionality.
Definition: Loggable.hxx:28
 
Root namespace for the PLCnext API