wait-for-script-barrier
or script-barrier-limit
commands.
A script branch enters a barrier by calling wait-for-script-barrier
. It will then be suspended until num_branches script branches have entered the barrier. Once all script branches have reached the barrier, they are released and will continue executing. At the same time the barrier is reset and can be used again.