std.Thread: wait for ResetEvent in broadcast test

This commit is contained in:
Simon Galli 2025-12-03 19:08:30 +01:00
parent d73fbcc3ae
commit ddcc22a8a1

View file

@ -1927,6 +1927,7 @@ test "ResetEvent broadcast" {
if (self.counter.fetchSub(1, .acq_rel) == 1) { if (self.counter.fetchSub(1, .acq_rel) == 1) {
self.event.set(); self.event.set();
} }
self.event.wait();
} }
}; };