replace boost::barrier to adportable::barrier