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. init_thread

init_thread

Macro init_thread 

Source
macro_rules! init_thread {
    ($name:literal, $priority:expr, $entry:expr, $stack_size:expr $(,)?) => { ... };
}
Expand description

Constructs a new Thread in global static storage.

§Safety

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