def wait(self):
with self.cvar:<EOL><INDENT>self.count.value += <NUM_LIT:1><EOL>self.cvar.notify_all()<EOL>while self.count.value < self.n_procs:<EOL><INDENT>self.cvar.wait()<EOL><DEDENT><DEDENT>
Wait until all processes have reached the barrier.