Using barrier to manage race turns