MCE::Channel::SimpleFast3pm
Fast channel tuned for one producer and one consumer
Version
This document describes MCE::Channel::SimpleFast version 1.901
Overview
A channel class providing queue-like and two-way communication for one process or thread on either end; no locking needed.
This is similar to MCE::Channel::Simple but optimized for non-Unicode strings only. The main difference is that this module lacks freeze-thaw serialization. Non-string arguments become stringified; i.e. numbers and undef.
The API is described in MCE::Channel with the sole difference being "send" and "send2" handle one argument.
Current module available since MCE 1.877.
- new
-
use MCE::Channel;my $chnl = MCE::Channel->new( impl => 'SimpleFast' );
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
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.