resum valid check thread resum paus mutex paus paus mutex notifi 