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.109 by root, Sat Feb 5 21:20:47 2011 UTC vs.
Revision 1.112 by root, Sat Feb 19 06:51:23 2011 UTC

2 2
3Coro::Semaphore - counting semaphores 3Coro::Semaphore - counting semaphores
4 4
5=head1 SYNOPSIS 5=head1 SYNOPSIS
6 6
7 use Coro::Semaphore; 7 use Coro;
8 8
9 $sig = new Coro::Semaphore [initial value]; 9 $sig = new Coro::Semaphore [initial value];
10 10
11 $sig->down; # wait for signal 11 $sig->down; # wait for signal
12 12
38 38
39use common::sense; 39use common::sense;
40 40
41use Coro (); 41use Coro ();
42 42
43our $VERSION = 5.25; 43our $VERSION = 5.37;
44 44
45=item new [inital count] 45=item new [inital count]
46 46
47Creates a new sempahore object with the given initial lock count. The 47Creates a new sempahore object with the given initial lock count. The
48default lock count is 1, which means it is unlocked by default. Zero (or 48default lock count is 1, which means it is unlocked by default. Zero (or

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines