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

handle_thread_termination

Function handle_thread_termination 

Source
pub fn handle_thread_termination<K: Kernel>(kernel: K, from_userspace: bool)
Expand description

Handle conditional termination of interrupted thread

Checks if the current thread is terminating and was interrupted from userspace. If so, exit the thread.

This should be called when returning to interrupt or exception.