Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/core/kernel/src/wasm/posix/sched.ts
1068 views
1
/*
2
Functions from sched.h.
3
4
These are all very hard to implement with node, without just writing a node extension
5
module which is what I'll likely have to do...
6
*/
7
8
import { notImplemented } from "./util";
9
10
export default function sched({}) {
11
const names =
12
"sched_get_priority_max sched_get_priority_min sched_getparam sched_getscheduler sched_rr_get_interval sched_setparam sched_setscheduler";
13
const sched: any = {};
14
for (const name of names.split(/\s+/)) {
15
sched[name] = () => notImplemented(name);
16
}
17
return sched;
18
}
19
20