(self, parties, action=None, timeout=None, verbose=None)
Create a barrier, initialised to 'parties' threads.
        'action' is a callable which, when supplied, will be called
        by one of the threads after they have all entered the
        barrier and just prior to releasing them all.
        If a 'timeout' is provided, it is uses as the default for
        all subsequent 'wait()' calls.
Create a barrier, initialised to 'parties' threads.
        'action' is a callable which, when supplied, will be called
        by one of the threads after they have all entered the
        barrier and just prior to releasing them all.
        If a 'timeout' is provided, it is uses as the default for
        all subsequent 'wait()' calls.
Create a barrier initialised to parties threads . action is a callable which when supplied will be called by one of the threads after they have all entered the barrier and just prior to releasing them all . If a timeout is provided it is uses as the default for all subsequent wait () calls .
def __init__(self, parties, action=None, timeout=None, verbose=None):
        """
        Create a barrier, initialised to 'parties' threads.
        'action' is a callable which, when supplied, will be called
        by one of the threads after they have all entered the
        barrier and just prior to releasing them all.
        If a 'timeout' is provided, it is uses as the default for
        all subsequent 'wait()' calls.
        """
        _Verbose.__init__(self, verbose)
        self._cond = Condition(Lock())
        self._action = action
        self._timeout = timeout
        self._parties = parties
        self._state = 0 #0 filling, 1, draining, -1 resetting, -2 broken
        self._count = 0
def __init__ ( self , parties , action = None , timeout = None , verbose = None ) : _Verbose . __init__ ( self , verbose ) self . _cond = Condition ( Lock ( ) ) self . _action = action self . _timeout = timeout self . _parties = parties self . _state = 0 #0 filling, 1, draining, -1 resetting, -2 broken self . _count = 0