Skip to content

Commit

Permalink
Avoid thread start order race
Browse files Browse the repository at this point in the history
With a sleep, which isn't good; thinking up a more robust test case
design here would be preferable.
  • Loading branch information
jnthn committed Jan 2, 2018
1 parent 7ad80b3 commit 8ecd6cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/concurrency/02-lock.t
Expand Up @@ -198,6 +198,7 @@ my class CondVar is repr('ConditionVariable') { }
nqp::threadrun($t3);
nqp::threadrun($t4);
nqp::threadrun($t5);
nqp::sleep(1.0);

# Start signaling thread
nqp::threadrun($t1);
Expand Down

0 comments on commit 8ecd6cc

Please sign in to comment.