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

Comparing Coro/Coro/AIO.pm (file contents):
Revision 1.8 by root, Mon Nov 20 20:29:33 2006 UTC vs.
Revision 1.9 by root, Mon Nov 20 22:41:44 2006 UTC

97 97
98 push \@_, sub { 98 push \@_, sub {
99 \$state = Coro::_aio_get_state; 99 \$state = Coro::_aio_get_state;
100 \@res = \@_; 100 \@res = \@_;
101 \$current->ready; 101 \$current->ready;
102 undef \$current;
103 }; 102 };
104 103
105 &$iosub; 104 &$iosub;
106 105
106 Coro::schedule;
107 Coro::schedule while !\$state; 107 Coro::schedule while !\$state;
108 108
109 Coro::_aio_set_state \$state; 109 Coro::_aio_set_state \$state;
110 wantarray ? \@res : \$res[0] 110 wantarray ? \@res : \$res[0]
111 } 111 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines