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

Comparing Coro/Coro/SemaphoreSet.pm (file contents):
Revision 1.75 by root, Mon Dec 15 16:41:43 2008 UTC vs.
Revision 1.76 by root, Mon Dec 15 18:18:34 2008 UTC

54method waits until the semaphore is available if the counter is zero. 54method waits until the semaphore is available if the counter is zero.
55 55
56=cut 56=cut
57 57
58sub down { 58sub down {
59 Coro::Semaphore::down ($_[0][1]{$_[1]} ||= new undef, $_[0][0]); 59 Coro::Semaphore::down ($_[0][1]{$_[1]} ||= Coro::Semaphore::_alloc $_[0][0]);
60} 60}
61 61
62#ub timed_down { 62#ub timed_down {
63# require Coro::Timer; 63# require Coro::Timer;
64# my $timeout = Coro::Timer::timeout ($_[2]); 64# my $timeout = Coro::Timer::timeout ($_[2]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines