pub const TH_FLAGS_IDLE: c_int = 0x2;