in reply to Re^3: Shared memory and asynchronous access
in thread Shared memory and asynchronous access
1nickt++, thank you. Regarding MCE::Shared and when the condition var aspect is not needed, the shared scalar will do the same.
my $shared = MCE::Shared->scalar(0);
Workers fetch and increment accordingly.
$shared->get; $shared->incr;
As of this writing, MCE and MCE::Shared are at 1.827 and 1.823 respectively.
|
|---|