Scheduler
newProcess.cpp
Go to the documentation of this file.
1 
10 #include "newProcess.h"
11 
12 #include <scheduler/queue.h>
13 
14 using namespace Scheduler;
15 
16 
18 {
19 }
20 
21 void NewProcess::queueProcess(std::shared_ptr<Process> task)
22 {
23  Queue::getReadyQueue()->add(task);
24 }
std::shared_ptr< Process > task
Definition: event.h:60
void queueProcess(std::shared_ptr< Process > p)
Definition: newProcess.cpp:21
static Queue * getReadyQueue()
get a pointer to the system&#39;s ready queue
Definition: queue.cpp:30
void add(std::shared_ptr< Process > p)
add a process to the queue
Definition: queue.cpp:23