632a4c9326
Many changes to code structure are included: - removed TIME_SLICE_IN_MS - removed sychronized_indexed_list - removed region_owned - kernel_owned move to kernel.h, task_owned moved to task.h - global configs moved to rust_globals.h - changed #pragma once to standard guard in rust_upcall.h - got rid of memory.h
16 lines
315 B
C++
16 lines
315 B
C++
|
|
#include "rust_kernel.h"
|
|
#include "rust_sched_reaper.h"
|
|
|
|
// NB: We're using a very small stack here
|
|
const size_t STACK_SIZE = 1024*20;
|
|
|
|
rust_sched_reaper::rust_sched_reaper(rust_kernel *kernel)
|
|
: rust_thread(STACK_SIZE), kernel(kernel) {
|
|
}
|
|
|
|
void
|
|
rust_sched_reaper::run() {
|
|
kernel->wait_for_schedulers();
|
|
}
|