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

Comparing Coro/Coro/Semaphore.pm (file contents):
Revision 1.90 by root, Sat Mar 21 08:53:20 2009 UTC vs.
Revision 1.91 by root, Mon Mar 23 07:39:48 2009 UTC

135 135
136=cut 136=cut
137 137
138sub guard { 138sub guard {
139 &down; 139 &down;
140 # double indirection because bless works on the referenced
141 # object, not (just) on the reference itself.
142 bless [$_[0]], Coro::Semaphore::guard:: 140 bless [$_[0]], Coro::Semaphore::guard::
143} 141}
144 142
145#=item $guard = $sem->timed_guard ($timeout) 143#=item $guard = $sem->timed_guard ($timeout)
146# 144#

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines