13 Task(DontFuse,DefaultPriority),
15 _taskNumber(taskNumber),
16 _taskQueue(taskQueue) {
23 logDebug(
"run(...)",
"task of type " << _task->getTaskType() <<
" is now ready to run. Put into ready queue" );
25 insertReadyTask(_task, _taskNumber, _taskQueue);
32 ReadyFusableTasks::FinishedTaskNumbers::iterator p = taskQueue->
completedTaskNumbers.find( taskNumber );
36 taskQueue->
tasks.push_back( std::pair<tarch::multicore::Task*, int>(task, taskNumber) );
#define logDebug(methodName, logMacroMessageStream)
void inc(const std::string &identifier, double value=1.0, bool disableSampling=false, bool clearAfterDatabaseDump=false)
static Statistics & getInstance()
This is not the canonical realisation of singletons as I use it usually for stats in Peano.
Create a lock around a boolean semaphore region.
Abstract super class for a job.
static const std::string SubmitFusedTasksStatisticsIdentifier
static tarch::logging::Log _log
virtual void run() override
Run task.
LogReadyTask(Task *task, int taskNumber, ReadyFusableTasks *taskQueue)
Construct log read task.
static void insertReadyTask(Task *task, int taskNumber, ReadyFusableTasks *taskQueue)
Insert a new ready task into the local queues.
Task queue of tasks which we hold back.
tarch::multicore::BooleanSemaphore semaphore
FinishedTaskNumbers completedTaskNumbers