m_completed_tasks.empty()需要加锁