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.85 by root, Wed Jul 22 03:02:07 2009 UTC vs.
Revision 1.86 by root, Sun Jul 26 01:07:57 2009 UTC

143Same as Coro::Semaphore::wait on the specified semaphore. 143Same as Coro::Semaphore::wait on the specified semaphore.
144 144
145=cut 145=cut
146 146
147sub wait { 147sub wait {
148 Coro::Semaphore::wait ($_[0][1]{$_[1]} || return $_[0][0] > 0); 148 Coro::Semaphore::wait ($_[0][1]{$_[1]} || return);
149} 149}
150 150
151=item $guard = $semset->guard ($id) 151=item $guard = $semset->guard ($id)
152 152
153This method calls C<down> and then creates a guard object. When the guard 153This method calls C<down> and then creates a guard object. When the guard

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines