isZero checks if there are any active processes
()
| 157 | |
| 158 | // isZero checks if there are any active processes |
| 159 | func (as *activeSet) isZero() bool { |
| 160 | as.m.Lock() |
| 161 | defer as.m.Unlock() |
| 162 | return len(as.set) == 0 |
| 163 | } |
| 164 | |
| 165 | // wait blocks until there are no active processes |
| 166 | func (as *activeSet) wait() { |