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.108 by root, Thu Nov 11 00:09:09 2010 UTC vs.
Revision 1.109 by root, Sat Feb 5 21:20:47 2011 UTC

24 24
25Counting semaphores are typically used to coordinate access to 25Counting semaphores are typically used to coordinate access to
26resources, with the semaphore count initialized to the number of free 26resources, with the semaphore count initialized to the number of free
27resources. Threads then increment the count when resources are added 27resources. Threads then increment the count when resources are added
28and decrement the count when resources are removed. 28and decrement the count when resources are removed.
29
30You don't have to load C<Coro::Semaphore> manually, it will be loaded
31automatically when you C<use Coro> and call the C<new> constructor.
29 32
30=over 4 33=over 4
31 34
32=cut 35=cut
33 36

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines