add barrier in unix