pub(super) fn set_current(thread: Thread) -> Result<(), Thread>
Tries to set the thread handle for the current thread. Fails if a handle was already set or if the thread ID of thread would change an already-set ID.
thread