mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.Thread: wait for ResetEvent in broadcast test
This commit is contained in:
parent
d73fbcc3ae
commit
ddcc22a8a1
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue