Use new mutex_lock g_dp_event_mutex to access g_dp_event_thread_id