Scheduler
startProc.cpp
Go to the documentation of this file.
1 
10 #include "startProc.h"
11 
12 #include <scheduler/system.h>
13 #include <scheduler/processor.h>
14 
15 using namespace Scheduler;
16 
17 
19 {
20  print();
22  proc->power(true);
24 }
25 
26 std::string StartProc::getName()
27 {
28  return "Starting processor";
29 }
virtual void print()
print information about the event
Definition: event.cpp:41
static System * getInstance()
Definition: system.cpp:28
std::string getName() override
get the name of the event
Definition: startProc.cpp:26
void power(bool p)
power the processor on or off
Definition: processor.cpp:174
void process() override
handle the the event TODO: &#39;process&#39; is maybe not the best word for that, given that our simulator ac...
Definition: startProc.cpp:18
Processor * getProc()
return the processor
Definition: system.cpp:76
void updateFreq()
invokes the frequency governor to changes the frequency of the processor
Definition: system.cpp:102