Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-IPC-ShareLite | Distribution: openSUSE Tumbleweed |
Version: 0.17 | Vendor: openSUSE |
Release: 1.13 | Build date: Fri Sep 19 07:29:17 2014 |
Group: Development/Libraries/Perl | Build host: reproducible |
Size: 46419 | Source RPM: perl-IPC-ShareLite-0.17-1.13.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: http://search.cpan.org/dist/IPC-ShareLite/ | |
Summary: 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;
Artistic-1.0 or GPL-1.0+
* Fri Sep 19 2014 coolo@suse.com - updated to 0.17 - Make unicode test work on older Perls. 0.16 2009-03-09 - Add unicode test. 0.15 2009-03-09 - Add some logging to help diagnose smoke failures. 0.14 2009-03-07 - Croak if 4 char key string is not 8-bit clean. See #33672. * Tue Nov 30 2010 coolo@novell.com - switch to perl_requires macro * Mon Nov 29 2010 coolo@novell.com - remove /var/adm/perl-modules * Mon Nov 29 2010 coolo@novell.com - called spec2changelog * Thu Nov 01 2007 jfunk@funktronics.ca - Initial release
/usr/lib/perl5/vendor_perl/5.40.0/riscv64-linux-thread-multi/IPC /usr/lib/perl5/vendor_perl/5.40.0/riscv64-linux-thread-multi/IPC/ShareLite.pm /usr/lib/perl5/vendor_perl/5.40.0/riscv64-linux-thread-multi/auto/IPC /usr/lib/perl5/vendor_perl/5.40.0/riscv64-linux-thread-multi/auto/IPC/ShareLite /usr/lib/perl5/vendor_perl/5.40.0/riscv64-linux-thread-multi/auto/IPC/ShareLite/ShareLite.so /usr/lib/perl5/vendor_perl/5.40.0/riscv64-linux-thread-multi/auto/IPC/ShareLite/autosplit.ix /usr/share/doc/packages/perl-IPC-ShareLite /usr/share/doc/packages/perl-IPC-ShareLite/Changes /usr/share/doc/packages/perl-IPC-ShareLite/README /usr/share/man/man3/IPC::ShareLite.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Tue Nov 19 01:14:14 2024