convert thread current to global flag