rust: CLI, app wiring and benchmark harnesses

This commit is contained in:
Andy Dixon
2026-10-08 17:13:18 +01:00
parent a530bc7a75
commit db83ef3d43
5 changed files with 520 additions and 0 deletions
+8
View File
@@ -39,3 +39,11 @@ impl Cancel {
&self.0.rx
}
}
impl Cancel {
/// Async-signal-safe half of cancel(): sets the flag only. Pollers must
/// follow up with cancel() to wake select-based waiters.
pub fn cancel_flag_only(&self) {
self.0.flag.store(true, Ordering::Relaxed);
}
}