To use a barrier, all hosts of a given communicator have to call its method barrier().
class TPO::Communicator { void barrier(); };