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