… | |
… | |
22 | |
22 | |
23 | package Coro::Semaphore; |
23 | package Coro::Semaphore; |
24 | |
24 | |
25 | use Coro (); |
25 | use Coro (); |
26 | |
26 | |
27 | $VERSION = 0.08; |
27 | $VERSION = 0.09; |
28 | |
28 | |
29 | =item new [inital count, default zero] |
29 | =item new [inital count, default zero] |
30 | |
30 | |
31 | Creates a new sempahore object with the given initial lock count. The |
31 | Creates a new sempahore object with the given initial lock count. The |
32 | default lock count is 1, which means it is unlocked by default. |
32 | default lock count is 1, which means it is unlocked by default. |