++ed by:
RSCHABER GENEHACK XYF LICHTKIND JROBINSON

136 PAUSE users
117 non-PAUSE users.

Malcolm Beattie

NAME

Thread::Semaphore - thread-safe semaphores

SYNOPSIS

    use Thread::Semaphore;
    my $s = new Thread::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);
    $s->up($up_value);
    $s->down($up_value);