On Sun, Nov 26, 2000 at 09:17:30PM +0100, Thomas Christen wrote: > > My next step is now to implement the Task called Paralell to let ant execute > Tasks in several threads. >
When designing this, if you would, give some though about different models for allowing a build to be stopped before completion. This includes the case where there is only one thread executing the build as well as the multi-thread case. Given the deadlock dangers of Thread.stop(), Thread.suspend(), etc. it seems to me that we need some sort of consistent approach accross tasks to be able to tell them to stop what they are doing, particularly in the case where they have forked a process that may take some time to complete. Perhapse an approach can be developed whereby the current tasks would by default be considered "halt unfriendly" until someone gets around to implementing whatever required method provides the mid-build halting semantics. Obviously my current motive is the GUI, where the user will want to halt a build after it has started (currently accomplished with a nice Ctrl-C). But there are other cases where this will be needed, including remote monitoring of builds, etc. Thanks, sim -- Mustard Seed Software mailto:[EMAIL PROTECTED]
