added task-class

This commit is contained in:
portnoytmy 2025-06-16 23:47:53 +02:00
parent 469ad9bb65
commit efd4e8fdf5
5 changed files with 113 additions and 17 deletions

15
task.cpp Normal file
View file

@ -0,0 +1,15 @@
#include <task.h>
Task::Task(int pid,
const std::string &name,
const std::vector<std::pair<std::string, std::string>> &program)
{
this->pid=pid;
this->name=name;
this->program=program;
this->pc=0;
this->acc=0;
this->blockTicks=0;
this->active=true;
}