… | … | ||
---|---|---|---|
50 | C<2>, and so on. | 50 | C<2>, and so on. |
51 | 51 | ||
52 | =cut | 52 | =cut |
53 | 53 | ||
54 | sub new { | 54 | sub new { |
55 | # we cheat and set infinity == 10**9 | 55 | # we cheat and set infinity == 2*10**9 |
56 | bless [ | 56 | bless [ |
57 | [], | 57 | [], |
58 | (Coro::Semaphore::_alloc 0), | 58 | (Coro::Semaphore::_alloc 0), |
59 | (Coro::Semaphore::_alloc +($_[1] || 2_000_000_000) - 1), | 59 | (Coro::Semaphore::_alloc +($_[1] || 2_000_000_000) - 1), |
60 | ] | 60 | ] |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |