Skip to main content

name_current_thread

Function name_current_thread 

Source
pub fn name_current_thread()
Expand description

Push std::thread::current().name() down to the OS thread object.

No-op off RTEMS: std already calls the platform’s pthread_setname_np from Builder::spawn on every hosted target it supports. RTEMS is not in that list, so a name set with Builder::name lives only in Rust’s own Thread struct and never reaches the kernel — which is what makes our threads invisible to an RTEMS task listing.