// Already in the queue
}
}
-void BarrierAcquisitionImpl::post()
-{
- finish();
-}
void BarrierAcquisitionImpl::finish()
{
for (auto const& acqui : ongoing_acquisitions_) {
acqui->granted_ = true;
if (acqui == acqui->get_issuer()->waiting_synchro_)
- acqui->post();
+ acqui->finish();
// else, the issuer is not blocked on this acquisition so no need to release it
}
ongoing_acquisitions_.clear(); // Rearm the barier for subsequent uses