manpagez: man pages & more
man MCE::Channel::Mutex(3)
Home | html | info | man
MCE::Channel::Mutex(3)



NAME

       MCE::Channel::Mutex - Channel for producer(s) and many consumers


VERSION

       This document describes MCE::Channel::Mutex version 1.846


DESCRIPTION

       A channel class providing queue-like and two-way communication for
       processes and threads. Locking is handled using MCE::Mutex.

       The API is described in MCE::Channel.

       new
           use MCE::Channel;

           # The default is tuned for one producer and many consumers.
           my $chnl_a = MCE::Channel->new( impl => 'Mutex' );

           # Specify the 'mp' option for safe use by two or more producers
           # sending or recieving on the left side of the channel (i.e.
           # ->enqueue/->send or ->recv2/->recv2_nb).

           my $chnl_b = MCE::Channel->new( impl => 'Mutex', mp => 1 );


QUEUE-LIKE BEHAVIOR

       enqueue
       dequeue
       dequeue_nb
       end


TWO-WAY IPC - PRODUCER TO CONSUMER

       send
       recv
       recv_nb


TWO-WAY IPC - CONSUMER TO PRODUCER

       send2
       recv2
       recv2_nb


AUTHOR

       Mario E. Roy, <marioeroyA ATA gmailA DOTA com>



perl v5.28.2                      2019-08-27            MCE::Channel::Mutex(3)

mce 1.846.0 - Generated Wed Aug 28 16:29:41 CDT 2019
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.