1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! The cooperative cancel carrier the updater arms thread into the cores.
//!
//! Pure-Rust twin of `degenbot._ffi.cancel.CancelHandle` (the `PyO3` class lives
//! in the binding layer, which this crate must not depend on). The argv facade
//! installs the SIGINT policy (ADR-051 D7: first Ctrl+C calls [`CancelHandle::cancel`];
//! a second restores the default disposition) and the cores poll the flag at
//! chunk boundaries — never mid-chunk, so chunk atomicity (commit OR rollback)
//! is preserved and committed chunks stay durable.
use ;
use Arc;
/// A shareable cooperative cancel flag.