Romain Beauxis <to...@rastageeks.org> writes:

> Le samedi 17 juillet 2010 05:07:48, Goswin von Brederlow a écrit :
>> No, it couldn't. The main thread must be blocked waiting for something.
>> That something would either be waiting for select to return or the main
>> thread runs a queue and a seperate select thread and worker threads
>> throw tasks at it. I'm not having a main thread that checks every 0.001s
>> if a task happens to be done.
>
> Then use a Condition.wait on the main thread and Condition.signal in each 
> tasks. This is meant for that.
>
> I mean, there's not gonna be a ready-to-use solution for you. At some point 
> you'll have to be a little bit creative.
>
>
> Romain

Sure. I was just explaining why I made the main thread run a queue and
wait for tasks as well, not just the worker threads.

MfG
        Goswin

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to