On May 11, 2006, at 12:30 PM, Maarten de Vries wrote:

I already thought of that, but if the method needs to run more than once at the same time, you need to create a new subclassed thread every time you want to run the method. The reason why I don't want to wait for the method to finish is because I need to run the method a lot of times in a loop which can't take longer than one tick. If you make a new thread every time it
takes longer than one tick.

Thanks,
Maarten

Pre-create an array of threads that you can "run" when you need.
Keep some number of references in an array and then the creation overhead is gone. And each thread can then be used like a method that you dont care to wait for
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to