void removeThreadFromMVarQueue (Capability *cap, StgMVar *mvar, StgTSO *tso);
void removeThreadFromQueue (Capability *cap, StgTSO **queue, StgTSO *tso);
void removeThreadFromMVarQueue (Capability *cap, StgMVar *mvar, StgTSO *tso);
void removeThreadFromQueue (Capability *cap, StgTSO **queue, StgTSO *tso);