IPC::Mmap::Win32

SUMMARY: CONSTR | METHOD | DETAIL: CONSTR | METHOD

## Class IPC::Mmap::Win32

Inherits from:
  IPC::Mmap

Concrete implementation of the IPC::Mmap class for Win32.

Permission is granted to use this software under the same terms as Perl itself. Refer to the Perl Artistic License for details.

Author:
  D. Arnold
Version:
  0.11
Since:
  2006-05-01

Unless otherwise noted, `$self` is the object instance variable.

Constructor Summary
`new($filename, $length, $protflags, $mmapflags)` mmap()'s using Win32::MMF::UseNameSpace, Win32::MMF::ClaimNameSpace, Win32::MMF::MapViewOfFile, and Win32::MMF::CreateSemaphore methods

Method Summary
`close()` Unmap the mmap()ed region
`lock()` Locks the mmap'ed region
`unlock()` Unlocks the mmap'ed region

Constructor Details

### new

    new($filename, $length, $protflags, $mmapflags)

  mmap()'s using Win32::MMF::UseNameSpace, Win32::MMF::ClaimNameSpace, Win32::MMF::MapViewOfFile, and Win32::MMF::CreateSemaphore methods.

  Parameters:
    `$filename` -
    `$length` - optional
    `$protflags` - optional
    `$mmapflags` - optional
  Returns:
    the IPC::Mmap::Win32 object on success; undef on failure

Method Details

### close

    close()

  Unmap the mmap()ed region.

### lock

    lock()

  Locks the mmap'ed region. Implemented using Win32::MMF::WaitForSingleObject(). May be sufficient for multithread locking.

### unlock

    unlock()

  Unlocks the mmap'ed region. Implemented using Win32::MMF::ReleaseSemaphore().

Generated by psichedoc on Wed May 3 07:40:42 2006