allow to interrupt the sleeping scheduling thread