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 concurrency, timing, logging and OS-facing primitives an IOC is built
//! on — C `libCom`'s `epicsThread` / `epicsTime` / `errlog` / `envDefs` half.
//!
//! # The two backends
//!
//! [`task`]'s spawn/sleep/interval seam has two mutually exclusive backends,
//! selected by this crate's `build.rs` into one `cfg` rather than repeated as a
//! target/feature predicate at each of the ~two dozen seam sites:
//!
//! * `tokio_backend` — the tokio runtime. The hosted default.
//! * `exec_backend` — the std-thread [`background`] executor (callback pool +
//! delayed timer + scanOnce worker). Unconditional on RTEMS, which has no
//! tokio reactor, and host-selectable through the `rtems-exec-model` feature
//! for a Linux blocking-front-end deployment that wants the same
//! runtime-free backend.
//!
//! [`crate::EXEC_BACKEND`] states which one this build got, so a crate above
//! can pin its own copy of the predicate to it.
// Re-export tokio::select! macro through the runtime facade.
pub use select;