Moved process class to its own file
This commit is contained in:
23
src/process.hpp
Normal file
23
src/process.hpp
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#ifndef PROCESS_H
|
||||||
|
#define PROCESS_H
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
|
namespace kernel
|
||||||
|
{
|
||||||
|
|
||||||
|
class Process
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
Process();
|
||||||
|
|
||||||
|
size_t priority;
|
||||||
|
|
||||||
|
void* stack;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -3,21 +3,11 @@
|
|||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#include "process.hpp"
|
||||||
|
|
||||||
namespace kernel
|
namespace kernel
|
||||||
{
|
{
|
||||||
|
|
||||||
class Process
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
Process();
|
|
||||||
|
|
||||||
size_t priority;
|
|
||||||
|
|
||||||
void* stack;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
class ProcessQueue
|
class ProcessQueue
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user