pub fn add(&self, delta: i32) {
        let mut count = self.0.count.lock().unwrap();
        *count += delta;
        assert!(*count >= 0);
        self.0.cond.notify_all();
    }
/// Add a new thread to the waitgroup.
///
/// # Failure
///
/// If the internal count drops below `0` as a result of calling `add`,
/// then this function panics.
Add a new thread to the waitgroup.
Add a new thread to the waitgroup .
pub fn add(&self, delta: i32) {
        let mut count = self.0.count.lock().unwrap();
        *count += delta;
        assert!(*count >= 0);
        self.0.cond.notify_all();
    }
pub fn add ( & self , delta : i32 ) { let mut count = self . 0 . count . lock ( ) . unwrap ( ) ; * count += delta ; assert ! ( count 0 ) ; self . 0 . cond . notify_all ( ) ; }
Add a new thread to the waitgroup.
Add a new thread to the waitgroup .
&self
delta
i32
&self
delta
i32
failure
If the internal count drops below `0` as a result of calling `add`,
then this function panics.
If the internal count drops below ` 0 ` as a result of calling ` add ` then this function panics .