diff options
author | Artur Bergman <sky@nanisky.com> | 2002-05-07 21:16:28 +0000 |
---|---|---|
committer | Artur Bergman <sky@nanisky.com> | 2002-05-07 21:16:28 +0000 |
commit | c355877e9e68fb3e29329a13c757988acfe97ffd (patch) | |
tree | 2d72b9b6acee0f2e58162269e7ce1cb3df0938b0 /ext/threads | |
parent | dcb6ccbc8d5cd83e6b5ecf9c742ed72c880eab81 (diff) | |
download | perl-c355877e9e68fb3e29329a13c757988acfe97ffd.tar.gz |
Documentation added.
p4raw-id: //depot/perl@16453
Diffstat (limited to 'ext/threads')
-rw-r--r-- | ext/threads/shared/semaphore.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/threads/shared/semaphore.pm b/ext/threads/shared/semaphore.pm index 06cc78ea84..91a1f276a3 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); |