NAME
Win32::Mutex - create mutex objects in perl.
SYNOPSIS
use Win32::Mutex;
Win32::Mutex::Create($MutObj,$Initial,$Name);
$MutObj->Wait(INFINITE);
DESCRIPTION
This module creates access to the Win32 mutex objects. The Wait and WaitForMultipleObjects calls are inherited from the Win32::IPC module.
METHODS AND CONSTRUCTORS
- Create($MutObj,$Initial,$Name)
-
Creates a mutex object in $MutObj.
Args: $Initial Flags to decide initial ownership.(TRUE = I own it). $Name String to name the mutex.
- Open($MutObj,$Name)
-
Create a mutex object from an already created mutex
Args: $MutObj Container for mutex object. $Name name of already created mutex.
- $MutObj->Release()
-
Release ownership of a mutex.
- $MutObj->Wait($Timeout)
-
Wait for ownership of a mutex.
Args: $Timeout amount of time you will wait.forever = INFINITE;