[4.0] check if event is called from main thread always