Skip to main content

Module task

Module task 

Source
Expand description

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 sched task 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 that pool was retired.)

The storage size is ASKED FOR (nros_platform_task_storage_{size,align}), never assumed. A hard-coded size has bitten before: 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.