[][src]Crate is_main_thread

is_main_thread is a bare bones library to simply check if the current thread is the main thread is the most platform independent way possible

The initial code for these checks was taken from the winit crate collected here for the main purpose of allowing winit to be an optional dependency but also have consistent behaviour should you allow another windowing library which might expect you to use the main thread but either way doesn't enforce it like winit.

Functions

is_main_thread

The sole simple function, to check whether or not the calling thread is the main thread