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