pub unsafe fn pin_threads(strategy: PinStrategy, threads: &mut [ThreadHandle])Expand description
Pin the given thread handles using the chosen strategy.
§Safety
Each entry of threads must be a valid OS-level handle to a still-live
thread. Passing a stale handle (e.g. for a thread that has exited or
been detached) is undefined behavior. The slice’s length must fit in
a C size_t.