isMainThread

fnbool isMainThread() nothrow @trusted

Checks 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