Win32::MMF::Shareable -

You can tie a scalar reference too, but the elements that the scalar reference is pointing to can not be modified by a direct assignment. All options from IPC::Shareable can be used in Win32::MMF::Shareable, although they are mostly ignored except for the 'label' argument. It is part of the Win32::MMF package.
All read and write accesses to a tied variable are locked by default. If you want to change how the default namespace is created, provide the namespace, swapfile and size options when you tie the first variable.
The options are exactly the same as those for the Win32::MMF constructor, although you can pass in IPC::Shareable options as well, making it easy to port IPC::Shareable

The options are exactly the same as the Win32::MMF constructor options. Because memory and variable management are managed internally by the Win32::MMF module, you do not need to specify how much memory is required by the variable.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Note that if you try to tie a variable without specifying the namespace, the default namespace 'shareable' will be used. The way to get around it is to make a local copy of the tied reference, modify the local copy, and then assign the modified local copy back to the reference.

There is a built-in method debug that will display as much information as possible for a given tied object.
fuckmymommyandme. For compatibility with IPC::Shareable, you can pass in IPC::Shareable options, although they mostly get ignored, except for the 'key' option.
There are two ways to initialize an MMF namespace to be used in tied mode.
Copyright (C) 2004 Roger Lee
Currently only scalar, list and hash can be tied and modified correctly. Win32::MMF::Shareable -
And to use a tied variable:
All access to tied variables are automatically and exclusively locked to preserve data integrity across multiple processes.
This module provides a tied variable interface to the Win32::MMF module. Additional level of locking can be performed to protect critical part of the code.
Win32::MMF::Shareable mimics the operation of IPC::Shareable, it allows you to tie a variable to a namespace (shared memory) making it easy to share its content with other Perl processes.
To tie a variable to the default namespace:
Annotate this POD

Roger Lee <>
An alternative is to provide these options when the Win32::MMF::Shareable module is imported:
Currently only scalars, arrays, and hashes can be tied, I am investigating on the possibilities with tied file handles at the moment.
The current version 0.09 of Win32::MMF is available on CPAN at:
Credits go to my wife Jenny and son Albert, and I love them forever.
The Win32::MMF::Shareable module is modelled after IPC::Shareable

Write a comment

Comments: 0