The Win32::Semaphore module implements semaphores, synchronizing
access to shared resources. The constructor new creates a new semaphore
object and sets the initial count and the maximum count of the semaphore. The constructor
has the following syntax:
The arguments are defined as follows:$sem = Win32::Semaphore->new(init, max, [name]);
initThe initial count of the semaphore.
maxThe maximum count of the semaphore.
nameA string containing a name of the semaphore.
The open constructor opens an existing semaphore object specified
by name:
The following methods can be used on Win32::Semaphore objects:$sem = Win32::Semaphore->open(name);