thread

Macro thread 

Source
macro_rules! thread {
    ($name:expr, $entry:expr, $prio:expr, $stack:expr) => { ... };
}
Expand description

Create a Thread that works in both heap and zero-heap modes.

Uses the safe fn() entry pattern (trampoline). The name is automatically null-terminated.

§Example

let t = ove::thread!("worker", my_entry, Priority::Normal, 4096);