#include <scheduler.hpp>
Public Member Functions | |
Scheduler () | |
Constructor. | |
~Scheduler () | |
Destructor. | |
void | schedule () |
Method for scheduling tasks. | |
void | quit () |
Force scheduler to quit the test as soon as possible. | |
Protected Member Functions | |
void | wait (timespec) |
Wait given amount of time. | |
Protected Attributes | |
bool | quitFlag |
quit flag |
This class runs tasks in the right order, at the right time, measures execution times and saves this data for further processing. Usually framework users do not have to care about this class at all.
Definition at line 29 of file scheduler.hpp.
|
Constructor. Definition at line 27 of file scheduler.cpp. References quitFlag. |
|
Destructor. Definition at line 34 of file scheduler.cpp. |
|
Force scheduler to quit the test as soon as possible. Definition at line 122 of file scheduler.cpp. References PtfCore::getMessageLog(), Singleton< PtfCore >::getSingleton(), MESSAGE, and quitFlag. Referenced by MouseInputDevice::poll(), KeyboardInputDevice::poll(), and JoystickInputDevice::poll(). Here is the call graph for this function: ![]() |
|
Method for scheduling tasks. Overwritten method inherited from class Thread of the CommonC++ library in order to realize scheduler as independent thread. Definition at line 43 of file scheduler.cpp. References ERROR, TimeInterval::getDifference(), PtfCore::getMessageLog(), SequenceIterator::getNextTaskId(), PtfCore::getReactionHandler(), PtfCore::getSequenceIterator(), Singleton< PtfCore >::getSingleton(), PtfCore::getTaskLog(), PtfCore::getTaskRecords(), PtfCore::getTaskRecordsMutex(), PtfCore::getTasks(), ReactionHandler::handle(), SequenceIterator::hasNextTaskId(), TimeInterval::measureA(), TimeInterval::measureB(), MESSAGE, quitFlag, TimeInterval::toString(), and wait(). Referenced by PtfCore::run(). Here is the call graph for this function: ![]() |
|
Wait given amount of time.
References TimeInterval::compareDifference(), TimeInterval::measureA(), and TimeInterval::measureB(). Referenced by schedule(). Here is the call graph for this function: ![]() |
|
quit flag Definition at line 31 of file scheduler.hpp. Referenced by quit(), schedule(), and Scheduler(). |