Crate maelstrom_worker_child

Crate maelstrom_worker_child 

Source
Expand description

Helper library for maelstrom-worker.

This code is run in the child process after the call to clone. In this environment, since the cloning process is multi-threaded, there is very little that we can do safely. In particular, we can’t allocate from the heap. This library is separate so we can make it no_std and manage its dependencies carefully.

Structs§

ChildArgs
FdSlot

Enums§

Syscall
A syscall to call. This should be part of slice, which we refer to as a script. Some variants deal with a value. This is a usize local variable that can be written to and read from.

Functions§

start_and_exec_in_child
Run the provided syscall script in syscalls.
start_and_exec_in_child_trampoline