ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/Channel.pm
(Generate patch)

Comparing Coro/Coro/Channel.pm (file contents):
Revision 1.83 by root, Wed Jun 17 02:02:22 2009 UTC vs.
Revision 1.84 by root, Wed Jun 17 21:36:35 2009 UTC

50C<2>, and so on. 50C<2>, and so on.
51 51
52=cut 52=cut
53 53
54sub new { 54sub 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 ]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines