Marty O'Brien > Forks-Super-0.71 > Forks::Super::Sync::Win32

Download:
Forks-Super-0.71.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Stalled  1
View/Report Bugs
Module Version: 0.71   Source   Latest Release: Forks-Super-0.73

NAME ^

Forks::Super::Sync::Win32 - Forks::Super sync object using Win32::Semaphore

SYNOPSIS ^

    $lock = Forks::Super::Sync->new(implementation => 'Win32', ...);

    $pid=fork();
    $lock->releaseAfterFork();

    if ($pid == 0) { # child code
       $lock->acquire(...);
       $lock->release(...);
    } else {
       $lock->acquire(...);
       $lock->release(...);
    }

DESCRIPTION ^

IPC synchronization object implemented with Win32::Semaphore.

Advantages: fast, doesn't create files or use filehandles

Disadvantages: Windows only.

SEE ALSO ^

Forks::Super::Sync

syntax highlighting: