15 lines
305 B
C++
15 lines
305 B
C++
#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;
|
|
}
|
|
|