General Purpose library for Freestanding C++ and POSIX systems
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

28 行
414 B

#pragma once
#include "gp/indexed_array.hpp"
#include "gp/vfs/process_data.hpp"
#include "gp/vfs/runqueue.hpp"
namespace gp{
class system;
struct scheduler {
topic_list::node_ptr previous;
topic_list::node_ptr current;
size_t id;
system& sys;
no_inline_decl(
void yield_to(topic_list::node_ptr target)
);
scheduler(class system&, size_t token);
[[noreturn]] void startup();
void yield();
};
}