From: Artur Bergman Date: Tue, 7 May 2002 21:16:28 +0000 (+0000) Subject: Documentation added. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c355877e9e68fb3e29329a13c757988acfe97ffd;p=p5sagit%2Fp5-mst-13.2.git Documentation added. p4raw-id: //depot/perl@16453 --- diff --git a/ext/threads/shared/semaphore.pm b/ext/threads/shared/semaphore.pm index 06cc78e..91a1f27 100644 --- a/ext/threads/shared/semaphore.pm +++ b/ext/threads/shared/semaphore.pm @@ -6,18 +6,18 @@ our $VERSION = '1.00'; =head1 NAME -Thread::Semaphore - thread-safe semaphores +threads::shared::semaphore - thread-safe semaphores =head1 SYNOPSIS - use Thread::Semaphore; - my $s = new Thread::Semaphore; + use threads::shared::semaphore; + my $s = new threads::shared::semaphore; $s->up; # Also known as the semaphore V -operation. # The guarded section is here $s->down; # Also known as the semaphore P -operation. # The default semaphore value is 1. - my $s = new Thread::Semaphore($initial_value); + my $s = new threads::shared::semaphore($initial_value); $s->up($up_value); $s->down($up_value);