mbarrier object (64-bit, in shared memory)
pending arrival
count
arrivals left
expected arrival
count
expected total
phase parity
The parity of the current phase. It alternates between 0 and 1 whenever the barrier advances.
pending arrival count
The arrivals still required before the current phase can complete.
expected arrival count
The number of arrivals required in each phase, set by init.
tx-count
Bytes of asynchronous transfer still outstanding. arrive.expect_tx increases this count; hardware decreases it as transfers complete.
Phase Completion Condition
pending_arrival_count == 0
&&
tx_count == 0
The current phase completes only after all expected arrivals have occurred and all registered asynchronous transfer bytes have completed.
The barrier then advances atomically to the next phase and restores the pending arrival count from the expected arrival count.