printf sense setting at the end of barrier