(self)
return 0
Return the number of threads currently waiting at the barrier.
Return the number of threads currently waiting at the barrier.
Return the number of threads currently waiting at the barrier .
def n_waiting(self):
        """Return the number of threads currently waiting at the barrier."""
        # We don't need synchronization here since this is an ephemeral result
        # anyway.  It returns the correct value in the steady state.
        if self._state == 0:
            return self._count
        return 0
def n_waiting ( self ) : # We don't need synchronization here since this is an ephemeral result # anyway.  It returns the correct value in the steady state. if self . _state == 0 : return self . _count return 0