Moved task management classes to scheduler.hpp
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
#ifndef PROCESS_H
|
||||
#define PROCESS_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
namespace kernel
|
||||
{
|
||||
|
||||
class Process
|
||||
{
|
||||
public:
|
||||
|
||||
Process();
|
||||
|
||||
size_t priority;
|
||||
|
||||
void* stack;
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "processqueue.hpp"
|
||||
#include "scheduler.hpp"
|
||||
|
||||
kernel::ProcessQueue::ProcessQueue(Process** array)
|
||||
{
|
||||
@@ -1,13 +1,23 @@
|
||||
#ifndef HEAP_H
|
||||
#define HEAP_H
|
||||
#ifndef SCHEDULER_H
|
||||
#define SCHEDULER_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "process.hpp"
|
||||
|
||||
namespace kernel
|
||||
{
|
||||
|
||||
class Process
|
||||
{
|
||||
public:
|
||||
|
||||
Process();
|
||||
|
||||
size_t priority;
|
||||
|
||||
void* stack;
|
||||
|
||||
};
|
||||
|
||||
class ProcessQueue
|
||||
{
|
||||
public:
|
||||
@@ -30,6 +40,6 @@ private:
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user