void SP_CALLCONV Session::callback_notify_main_thread(sp_session *session) { Session* pSession = GetSessionFromUserdata( session ); pSession->OnNotifyMainThread(); pSession->m_isProcessEventsRequired = true; }