MCE::Ch...eadsFast(3)
π MCE::Channel::ThreadsFast π
okay so bestie, you found the manual page for MCE::Channel::ThreadsFast β that's a thing from User Contributed Perl Documentation, and it is genuinely one of those little modules that eats. pull up a chair, we're doing this together π«Ά
β¨ NAME β¨
MCE::Channel::ThreadsFast β a fast channel for producer(s) and many consumers. no cap. π
πΈ VERSION πΈ
this doc describes MCE::Channel::ThreadsFast version 1.902. write it down, bestie, we love a version number. β¨
π¦ DESCRIPTION π¦
so like, this is a channel class that gives you queue-like behavior and two-way communication β but for threads only, periodt. the locking? handled with threads::shared. she's lowkey self-sufficient like that. π
it's basically the same vibe as MCE::Channel::Threads, except this one is optimized for non-Unicode strings only. the main difference: this module lacks freeze-thaw serialization. non-string arguments get stringified β so, like, numbers and undef. it's giving "we said strings, we meant strings." π
the API is described over in MCE::Channel, with the sole difference being that "send" and "send2" handle one argument.
this current module has been available since MCE 1.877. iconic.
π new
use MCE::Channel;
# The default is tuned for one producer and many consumers.
my $chnl_a = MCE::Channel->new( impl => 'ThreadsFast' );
# Specify the 'mp' option for safe use by two or more producers
# sending or receiving on the left side of the channel (i.e.
# ->enqueue/->send or ->recv2/->recv2_nb).
my $chnl_b = MCE::Channel->new( impl => 'ThreadsFast', mp => 1 );
π QUEUE-LIKE BEHAVIOR π
enqueuedequeuedequeue_nbend
π TWO-WAY IPC - PRODUCER TO CONSUMER π
sendrecvrecv_nb
π TWO-WAY IPC - CONSUMER TO PRODUCER π
send2recv2recv2_nb
π§ LIMITATIONS π§
okay so listen closely, this part matters bestie.
the t/04_channel_threads tests are disabled on Unix platforms for Perl less than 5.10.1. basically, the MCE::Channel::ThreadsFast implementation is not supported on older Perls unless the OS vendor applied upstream patches β like, it works on RedHat/CentOS 5.x running Perl 5.8.x. so don't come for her if your Perl is ancient. π
π AUTHOR π
Mario E. Roy, <marioeroy AT gmail DOT com> β the icon who wrote all this. we stan. π
perl v5.42.0 Β· 2025-09-10 Β· and that's the whole MCE::Ch...eadsFast(3) page, bestie β go forth and thread safely, ily, bye πβ¨ππ¦
π¦ where this page comes from
- fedora 43: perl-MCE 1.902-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms