The ->enq method can send an array or hash reference as well. Serialization is handled automatically behind the scene.
MCE->enq( 'B', [ 1e3 + int(rand 1000) ] ); MCE->enq( 'B', { arg1 => 1e3 + int(rand 1000) } );
Warm regards, Mario.
In reply to Re^2: Data Between Threads
by marioroy
in thread Data Between Threads
by UpTide
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |