Proper emulation of QThreadData::canWait check
Dead code elimination
Minor style fixes [ci skip]
Rename m_seen_event to m_awaken