pub fn install_port_park(
executor: &mut Executor<'_>,
park: unsafe extern "C" fn(*mut c_void, u64) -> i8,
granularity_us: u64,
) -> boolExpand description
Install park on executor, waiting on the executor’s own wake object.
Returns false — and installs nothing — when this build has no wake
object to park on. That build keeps the millisecond wake_wait_ms path it
already had, which is why every caller can treat this as advisory.
granularity_us is the finest park the primitive can express. The PORT
states it, because only the port knows: an RTOS tick is a coarser limit
than the ABI signature (ThreadX ticks at 100 Hz) and a timespec primitive a
finer one (issue 1242).