SUSE Package Hub 15 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-Standard-Pool
Package Hub 15
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-Standard-Pool
Package Hub 15
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 SP1 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-SP1-Backports-Pool
Package Hub 15 SP1
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 SP1 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-SP1-Backports-Pool
Package Hub 15 SP1
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 SP2 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-SP2-Backports-Pool
Package Hub 15 SP2
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 SP2 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-SP2-Backports-Pool
Package Hub 15 SP2
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 SP3 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-SP3-Backports-Pool
Package Hub 15 SP3
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 SP3 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-SP3-Backports-Pool
Package Hub 15 SP3
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 SP4 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-SP4-Backports-Pool
Package Hub 15 SP4
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 SP4 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-SP4-Backports-Pool
Package Hub 15 SP4
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 SP5 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-SP5-Standard-Pool
Package Hub 15 SP5
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;
SUSE Package Hub 15 SP5 one-click install
Install perl-IPC-ShareLite
NOTE: This one-click installation requires that the SUSE Package Hub extension to already be enabled.
See http://packagehub.suse.com/how-to-use/ for information on enabling the Package Hub extension
If the extension is not enabled, this installation will fail while trying to enable an invalid repo.
This package might depend on packages from SUSE Linux Enterprise modules. If those modules are not enabled, a package dependency error will be encountered.
SUSE-PackageHub-15-SP5-Standard-Pool
Package Hub 15 SP5
Dummy repo - this will fail
-
perl-IPC-ShareLite
Lightweight interface to shared memory
IPC::ShareLite provides a simple interface to shared memory, allowing data
to be efficiently communicated between processes. Your operating system
must support SysV IPC (shared memory and semaphores) in order to use this
module.
IPC::ShareLite provides an abstraction of the shared memory and semaphore
facilities of SysV IPC, allowing the storage of arbitrarily large data; the
module automatically acquires and removes shared memory segments as needed.
Storage and retrieval of data is atomic, and locking functions are provided
for higher-level synchronization.
In many respects, this module is similar to IPC::Shareable. However,
IPC::ShareLite does not provide a tied interface, does not (automatically)
allow the storage of variables, and is written in C for additional speed.
Construct an IPC::ShareLite object by calling its constructor:
my $share = IPC::ShareLite->new(
-key => 1971,
-create => 'yes',
-destroy => 'no'
) or die $!;
Once an instance has been created, data can be written to shared memory by
calling the store() method:
$share->store("This is going in shared memory");
Retrieve the data by calling the fetch() method:
my $str = $share->fetch();
The store() and fetch() methods are atomic; any processes attempting to
read or write to the memory are blocked until these calls finish. However,
in certain situations, you'll want to perform multiple operations
atomically. Advisory locking methods are available for this purpose.
An exclusive lock is obtained by calling the lock() method:
$share->lock();
Happily, the lock() method also accepts all of the flags recognized by the
flock() system call. So, for example, you can obtain a shared lock like
this:
$share->lock( LOCK_SH );
Or, you can make either type of lock non-blocking:
$share->lock( LOCK_EX|LOCK_NB );
Release the lock by calling the unlock() method:
$share->unlock;