Skip to content

Commit

Permalink
[GH parrot#886] stabilize t/pmc/task.t, wait for kill signal
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Jan 3, 2013
1 parent d6dcaf3 commit f8d3536
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/pmc/task.t
Expand Up @@ -110,6 +110,12 @@ ok:
pass
task.'kill'()
wait task

# busy wait for signal to arrive at the other thread
$I0 = 0
loop:
$I0 = $I0 + 1
if $I0 < 5000 goto loop
.end

.sub task_to_kill
Expand Down

0 comments on commit f8d3536

Please sign in to comment.