MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / thread_start

Function thread_start

euralios_std/src/thread.rs:58–62  ·  view source on GitHub ↗

This function is called by syscalls::thread_spawn

(main: usize)

Source from the content-addressed store, hash-verified

56
57 // This function is called by syscalls::thread_spawn
58 extern "C" fn thread_start(main: usize) {
59 // Convert address back to Box containing the Box<dyn FnOnce()>
60 // fat pointer, then call it.
61 unsafe {Box::from_raw(main as *mut Box<dyn FnOnce()>)()};
62 }
63 Ok(())
64}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected