Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. kernel
  6. declare_non_priv_thread

declare_non_priv_thread

Macro declare_non_priv_thread 

Source
macro_rules! declare_non_priv_thread {
    ($name:literal, $priority:expr, $process_id:expr, $kernel_stack_size:expr  $(,)?) => { ... };
}
Expand description

Constructs a new Thread in global static storage and registers it.

§Safety

Each invocation of declare_non_priv_thread! must be executed at most once at run time.