NAME

MCE::Subs - Imports subroutines wrapping around Many-Core Engine's methods.

VERSION

This document describes MCE::Subs version 1.499_001

SYNOPSIS

use MCE::Subs;

DESCRIPTION

This will import the functions listed below into the calling script. The functions are prototyped, therefore allowing one to call these without using parenthesis.

use MCE::Subs;

sub user_func {

   my $wid = MCE->wid;

   mce_say "a: $wid";
   mce_sync;

   mce_say "b: $wid";
   mce_sync;

   mce_say "c: $wid";
   mce_sync;

   return;
}

MCE->new( max_workers => 24, user_func => \&user_func );

mce_run 0 for (1..100);

Note that print, printf, and say functions require the comma after the bareword filehandle.

mce_print STDERR, $error_msg, "\n";
mce_say STDERR, $error_msg;

Plese see MCE for explanation of the functions listed below.

FUNCTIONS for MANAGER PROCESS only

mce_restart_worker
mce_forchunk
mce_foreach
mce_forseq
mce_process
mce_run
mce_send
mce_shutdown
mce_spawn

FUNCTIONS for WORKERS only

mce_do
mce_exit
mce_gather
mce_sendto
mce_last
mce_next
mce_sync
mce_yield

FUNCTIONS for MANAGER PROCESS and WORKERS

mce_print
mce_printf
mce_say
mce_freeze
mce_thaw
mce_abort

SEE ALSO

MCE, MCE::Queue, MCE::Signal, MCE::Util

AUTHOR

Mario E. Roy, <marioeroy AT gmail DOT com>

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.