pub const TH_STATE_WAITING: c_int = 3;