Function current_or_unnamed

Source
pub(crate) fn current_or_unnamed() -> Thread
Expand description

Gets a handle to the thread that invokes it. If the handle stored in thread- local storage was already destroyed, this creates a new unnamed temporary handle to allow thread parking in nearly all situations.