isOnMainThread

Returns true if called on the main thread, false otherwise.