isMainThread
fn
bool isMainThread() nothrow @trustedChecks if the current thread is the main thread.
FLTK requires most operations to be performed on the main thread. Use this function to verify thread safety in debug builds.
Returns
true if called from the main thread