RPi::WiringPi::Meta - Shared memory meta data management for RPI::WiringPi
This module contains various utilities for the shared memory storage area.
Fetches and returns the shared memory data as a hash reference.
Serializes and stores the shared data.
Parameters:
$data
Mandatory, Hash Reference. The data to store (should be a modified version that was retrieved using meta_fetch()).
meta_fetch()
Although we do locking on each transaction internally, use this as a wrapper around bulk transactions.
$flags
Mandatory, Integer. See flock for details as to what's available here.
Default: If $flags is not sent in, we default to an exclusive lock (LOCK_EX).
LOCK_EX
Performs an unlock after you're done with meta_lock().
meta_lock()
Steve Bertrand, <steveb@cpan.org>
Copyright (C) 2016-2019 by Steve Bertrand
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or, at your option, any later version of Perl 5 you may have available.
To install RPi::WiringPi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPi::WiringPi
CPAN shell
perl -MCPAN -e shell install RPi::WiringPi
For more information on module installation, please visit the detailed CPAN module installation guide.