The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RPi::WiringPi::Meta - Shared memory meta data management for RPI::WiringPi

DESCRIPTION

This module contains various utilities for the shared memory storage area.

METHODS

meta_fetch

Fetches and returns the shared memory data as a hash reference.

meta_store($data)

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_lock($flags)

Although we do locking on each transaction internally, use this as a wrapper around bulk transactions.

Parameters:

    $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).

meta_unlock

Performs an unlock after you're done with meta_lock().

AUTHOR

Steve Bertrand, <steveb@cpan.org>

COPYRIGHT AND LICENSE

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.