Draft of processing event and notify_main_thread support