Broadcast inside lock (#3626)

This commit is contained in:
Raja Subramanian
2025-04-25 12:21:30 +05:30
committed by GitHub
parent f24152b4c0
commit 6739e7bcc8

View File

@@ -43,8 +43,8 @@ func (d *IncrementalDispatcher[T]) Add(item T) {
}
d.lock.Lock()
d.items = append(d.items, item)
d.lock.Unlock()
d.cond.Broadcast()
d.lock.Unlock()
}
func (d *IncrementalDispatcher[T]) Done() {