Skip to main content

Module task

Module task 

Source
Expand description

phase-359 W10 — one place that spawns a platform task from Rust.

Moved here from nros-node::executor::platform_task: Rust callers in two crates need it (nros-node’s open_threaded and signalfd forwarder, nros-cpp’s native tier runtime), and a helper for an ABI belongs beside the ABI rather than inside one of its consumers. (nros-node’s per-OS-priority worker pool used it too, until phase-509 P11 retired it.)

The storage size is ASKED FOR (nros_platform_task_storage_{size,align}), never assumed. A hard-coded size is issue 0570 exactly: a Rust-side pthread_attr_t mirror was 36 bytes shorter than NuttX’s, and pthread_attr_init wrote the difference into the caller’s frame. The probes exist so no caller has to guess.

Structs§

PlatformTask
A spawned platform task plus the storage the platform tracks it in.