Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/core/kernel/src/wasm/posix/spawn.zig
1068 views
1
pub fn keepalive() void {}
2
const posix_wasm = @cImport(@cInclude("posix-wasm.h"));
3
4
// Defined in posix-wasm.h, since it's disabled in wasi:
5
// struct sched_param
6
// {
7
// int sched_priority;
8
// };
9
10
export fn get_posix_spawnattr_schedparam_sched_priority(schedparam: *const posix_wasm.sched_param) c_int {
11
return schedparam.sched_priority;
12
}
13
14
export fn set_posix_spawnattr_schedparam_sched_priority(schedparam: *posix_wasm.sched_param, sched_priority: c_int) void {
15
schedparam.sched_priority = sched_priority;
16
}
17
18