m_pvr_thread might be zero, handle this correctly.