single thread flag