ariel_os::thread

Function current_tid

pub fn current_tid() -> Option<ThreadId>
Available on crate feature threading only.
Expand description

Returns the ThreadId of the currently active thread.

Note: when called from ISRs, this will return the thread id of the thread that was interrupted.