Queue thread

bioinfornatics bioinfornatics at fedoraproject.rog
Sun Nov 20 13:36:30 PST 2011


Le dimanche 20 novembre 2011 à 03:09 -0800, Jonathan M Davis a écrit :
> On Sunday, November 20, 2011 11:59:14 bioinfornatics wrote:
> > Dear,
> > I would like to know if they are a way to run run a queue thread an run
> > (nb core * 2 + 1) = nb thread in same time
> > 
> > something like:
> > size_t nb_core = 9;
> > Queue q = new Queue( 9, process1, process2, process3 );
> > q.run();
> 
> Look at std.parallelism. I don't know if it'll do quite what you want, but 
> it's the closest that you'll find in Phobos.
> 
> - Jonathan M Davis


i have tred to use TaskPool but i fail
Error: /parallelism.d(434): Error: no property 'opCall' for type
'fastcgi.application.Page'

the problem raise here:
https://github.com/bioinfornatics/DFastCGI/blob/master/src/fastcgi/application.d#L74 (i think)

Any help are welcome

thanks



More information about the Digitalmars-d-learn mailing list