… | … | ||
---|---|---|---|
63 | } | 63 | } |
64 | 64 | ||
65 | our $IDLE = new Coro sub { | 65 | our $IDLE = new Coro sub { |
66 | while () { | 66 | while () { |
67 | &_loop_oneshot; | 67 | &_loop_oneshot; |
68 | &Coro::schedule; | 68 | Coro::schedule if Coro::nready; |
69 | } | 69 | } |
70 | }; | 70 | }; |
71 | $IDLE->{desc} = "[EV idle thread]"; | 71 | $IDLE->{desc} = "[EV idle thread]"; |
72 | 72 | ||
73 | $Coro::idle = $IDLE; | 73 | $Coro::idle = $IDLE; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |