core: Implement multicore support.
This commit is contained in:
parent
9776ff9179
commit
a434fdcb10
13 changed files with 113 additions and 78 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
@ -56,6 +57,7 @@ enum class ThreadWakeupReason {
|
|||
namespace Kernel {
|
||||
|
||||
class Process;
|
||||
class Scheduler;
|
||||
|
||||
class Thread final : public WaitObject {
|
||||
public:
|
||||
|
@ -240,6 +242,8 @@ public:
|
|||
// available. In case of a timeout, the object will be nullptr.
|
||||
std::function<WakeupCallback> wakeup_callback;
|
||||
|
||||
std::shared_ptr<Scheduler> scheduler;
|
||||
|
||||
private:
|
||||
Thread();
|
||||
~Thread() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue