added task-class
This commit is contained in:
parent
469ad9bb65
commit
efd4e8fdf5
5 changed files with 113 additions and 17 deletions
15
task.cpp
Normal file
15
task.cpp
Normal 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;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue