NAME

Win32::Semaphore - allow synchronization with Win32 Semaphore objects.

SYNOPSIS use Win32::Semaphore;

Win32::Semaphore::Create($SemObj,0,1,"MySem");
$SemObj->Wait(INFINITE);

DESCRIPTION

This module allows the user to access Win32 semaphores.

METHODS

Win32::Semaphore::Create($SemObject,$Initial,$Max,$Name)

Creates a semaphore object.

    Args:
	$SemObject	container for the sem objects
 	$Initial	initial count of the semaphore
	$Max 		max count of the semaphore
	$Name		name (string)
Win32::Semaphore::Open($SemObject, $Name)

Open an already created named semaphore.

    Args:
	$SemObject	container for the sem object
	$Name		name of the semaphore to open
$SemObj->Release($Count,$lastval)

Release ownership of a semphore object.

    Args:
	$Count		amount to increase semaphore count
	$lastval	previous value of the semaphore count
$SemObj->Wait($TimeOut)

Wait for ownership of a semaphore object.