Contains the base implementation of a barrier synchronization agent.