mach stop_threads volatile