hardware thread clear macro