class_docstr: Defines a simple barrier class to synchronize on a particular event.
class_docstr_tok: ["Defines","a","simple","barrier","class","to","synchronize","on","a","particular","event","."]
docstr: Constructor.
  
  Args:
    num_threads: int - how many threads will be syncronizing on this barrier
docstr_tok: ["Constructor",".","Args",":","num_threads",":","int","-","how","many","threads","will","be","syncronizing","on","this","barrier"]
code: def __init__(self, num_threads):
      """Constructor.
  
      Args:
        num_threads: int - how many threads will be syncronizing on this barrier
      """
      self._num_threads = num_threads
      self._count = 0
      self._cond = threading.Condition()
  
file_path: acme/acme/utils/counting_test.py
imports: import threading
  from acme.utils import counting
  from absl.testing import absltest
label_desc: Use image node_id 1 to create a new Barrier object  with example: obj = Barrier(num_threads)