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.127 by root, Thu Dec 13 01:50:29 2012 UTC vs.
Revision 1.128 by root, Fri Feb 8 22:29:18 2013 UTC

126otherwise return false and leave the semaphore unchanged. 126otherwise return false and leave the semaphore unchanged.
127 127
128=item $sem->waiters 128=item $sem->waiters
129 129
130In scalar context, returns the number of threads waiting for this 130In scalar context, returns the number of threads waiting for this
131semaphore. 131semaphore. Might accidentally cause WW3 if called in other contexts, so
132don't use these.
132 133
133=item $guard = $sem->guard 134=item $guard = $sem->guard
134 135
135This method calls C<down> and then creates a guard object. When the guard 136This method calls C<down> and then creates a guard object. When the guard
136object is destroyed it automatically calls C<up>. 137object is destroyed it automatically calls C<up>.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines