Fix race-condition in test case.
The wait() call without arguments could miss the initial emit(), if called too late, which could easily happen on VMs with less predictable timing.
This commit is contained in:
parent
6caff0b105
commit
4394374364
|
@ -38,7 +38,7 @@ void main()
|
|||
|
||||
void worker()
|
||||
{
|
||||
ev.wait();
|
||||
ev.wait(0);
|
||||
ev.emit();
|
||||
setTimer(dur!"seconds"(1), {
|
||||
auto c = atomicOp!"+="(counter, 1);
|
||||
|
|
Loading…
Reference in a new issue