… | … | ||
---|---|---|---|
31 | 31 | ||
32 | =cut | 32 | =cut |
33 | 33 | ||
34 | package Coro::Semaphore; | 34 | package Coro::Semaphore; |
35 | 35 | ||
36 | no warnings; | 36 | use common::sense; |
37 | 37 | ||
38 | use Coro (); | 38 | use Coro (); |
39 | 39 | ||
40 | $VERSION = 5.17; | 40 | our $VERSION = 5.17; |
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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |