[fpc-devel] Light weight threads for FPC
Vinzent Hoefler
JeLlyFish.software at gmx.net
Fri Dec 14 10:57:50 CET 2007
On Friday 14 December 2007 10:20, Florian Klaempfl wrote:
> I think some thread pool class is more important, it would be
> basically the same as above
>
> for i := 0 to 3 do
> Handle[i] := TTask(ThreadPool.QueueTask(Func {tThreadFunc},
> @FuncArg[i]));
>
> for i := 0 to 3 do
> Result[i] := WaitForTask(Handle[i], 0);
Yes, that would be something nice and useful, indeed.
Vinzent.
More information about the fpc-devel
mailing list