On 5/26/2014 8:43 AM, Michael Schnell wrote:
Nice ! I did not know that. I understand that you mean this without
the Prism compatible syntax candy for t futures and parallel loops ?!?!?
Yes. The syntax isn't as nice, but it works:
Parallel.ForEach(1, testSize).Execute(
procedure (const elem: integer)
begin
if IsPrime(elem)then
outQueue.Add(elem);
end);
http://otl.17slon.com/tutorials.htm
--
Craig Peterson
Scooter Software
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal