Skip to content

Commit adda017

Browse files
committed
Initializing prevents the race to initialize, jnthn++
1 parent 84c6f41 commit adda017

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

S17-concurrency/thread.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ plan 25;
9191
isnt $*THREAD.id, 0, 'Initial thread has an ID';
9292
}
9393

94-
#?rakudo.moar skip 'Parameter "a" requires a type object, but an object instance was passed'
9594
{
96-
my $seen;
95+
my $seen = 0;
9796
my $threads = 3;
9897
my $times = 10000;
9998
my @t = (1..$threads).map: { Thread.start({ $seen++ for ^$times}) };

0 commit comments

Comments
 (0)