//! Optional CPU pinning for benchmarks, driven by environment variables so
//! the producer and drain cores can change between runs without a recompile.
use env;
use pin_thread;
/// Pin the calling (producer) thread to the core named by
/// `TICKLOG_PRODUCER_CORE`. No-op when the variable is unset or unparseable.
/// Drain-thread core from `TICKLOG_DRAIN_CORE`, or `None` to leave the drain
/// unpinned. Pass the result to `Builder::drain_affinity`.