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.34 by root, Thu May 8 00:55:30 2003 UTC vs.
Revision 1.51 by root, Mon Dec 26 23:20:59 2005 UTC

31 31
32=cut 32=cut
33 33
34package Coro::Semaphore; 34package Coro::Semaphore;
35 35
36no warnings qw(uninitialized); 36BEGIN { eval { require warnings } && warnings->unimport ("uninitialized") }
37 37
38use Coro (); 38use Coro ();
39 39
40$VERSION = 0.652; 40$VERSION = 1.7;
41 41
42=item new [inital count] 42=item new [inital count]
43 43
44Creates a new sempahore object with the given initial lock count. The 44Creates a new sempahore object with the given initial lock count. The
45default lock count is 1, which means it is unlocked by default. Zero (or 45default lock count is 1, which means it is unlocked by default. Zero (or
161 161
162sub Coro::Semaphore::guard::DESTROY { 162sub Coro::Semaphore::guard::DESTROY {
163 &up(${${$_[0]}}); 163 &up(${${$_[0]}});
164} 164}
165 165
1661;
167
168=back 166=back
169 167
170=head1 AUTHOR 168=head1 AUTHOR
171 169
172 Marc Lehmann <pcg@goof.com> 170 Marc Lehmann <schmorp@schmorp.de>
173 http://www.goof.com/pcg/marc/ 171 http://home.schmorp.de/
174 172
175=cut 173=cut
176 174
1751
176

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines