|
| | ThreadScheduler (Int threads, String outMeasurementFile, Bool useConditionVariable) |
| |
| void | step (Real time, Int timeStepCount) |
| | Performs a single simulation step.
|
| |
| virtual void | stop () |
| | Called on simulation stop to reliably clean up e.g. running helper threads.
|
| |
| | Scheduler (CPS::Logger::Level logLevel=CPS::Logger::Level::off) |
| |
| virtual void | createSchedule (const CPS::Task::List &tasks, const Edges &inEdges, const Edges &outEdges)=0 |
| | Creates the schedule for the given dependency graph.
|
| |
| void | resolveDeps (CPS::Task::List &tasks, Edges &inEdges, Edges &outEdges) |
| |
| TaskTime | getAveragedMeasurement (CPS::Task::Ptr task) |
| |
|
| typedef std::unordered_map< CPS::Task::Ptr, std::deque< CPS::Task::Ptr > > | Edges |
| |
| typedef std::chrono::steady_clock::duration | TaskTime |
| | Time measurement for the task execution.
|
| |
| static CPS::AttributeBase::Ptr | external |
| |
| static void | levelSchedule (const CPS::Task::List &tasks, const Edges &inEdges, const Edges &outEdges, std::vector< CPS::Task::List > &levels) |
| |
Definition at line 17 of file ThreadScheduler.h.
◆ ThreadScheduler()
| ThreadScheduler::ThreadScheduler |
( |
Int | threads, |
|
|
String | outMeasurementFile, |
|
|
Bool | useConditionVariable ) |
◆ ~ThreadScheduler()
| ThreadScheduler::~ThreadScheduler |
( |
| ) |
|
|
virtual |
◆ finishSchedule()
| void ThreadScheduler::finishSchedule |
( |
const Edges & | inEdges | ) |
|
|
protected |
◆ scheduleTask()
| void ThreadScheduler::scheduleTask |
( |
int | thread, |
|
|
CPS::Task::Ptr | task ) |
|
protected |
◆ step()
| void ThreadScheduler::step |
( |
Real | time, |
|
|
Int | timeStepCount ) |
|
virtual |
◆ stop()
| void ThreadScheduler::stop |
( |
| ) |
|
|
virtual |
◆ mNumThreads
| Int DPsim::ThreadScheduler::mNumThreads |
|
protected |
The documentation for this class was generated from the following files: