add barrier in windows