Added missing return value and default constructor

This commit is contained in:
2020-08-02 15:01:18 -05:00
parent 66cf91d3a5
commit 0b32783a2c
2 changed files with 8 additions and 0 deletions

View File

@@ -1,5 +1,10 @@
#include "scheduler.hpp"
kernel::ProcessQueue::ProcessQueue()
{
}
kernel::ProcessQueue::ProcessQueue(Process** array)
{
m_array = array;
@@ -14,6 +19,7 @@ kernel::Process* kernel::ProcessQueue::extractMin()
Process* p = m_array[0];
m_array[0] = m_array[m_size];
heapify(0);
return p;
}
void kernel::ProcessQueue::insert(Process* n)

View File

@@ -22,6 +22,8 @@ class ProcessQueue
{
public:
ProcessQueue();
ProcessQueue(Process** array);
Process* extractMin();