Re: [Pydev-code] threaded jython completion server and console.
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2010-02-02 23:32:35
|
On Mon, Feb 1, 2010 at 5:27 PM, Kostas Georgiou <geo...@gm...> wrote: > Hello Fabio, > I don't know about its efficiency, but if it is implemented as a worker > thread (like swingworker in swing) do you think that the halting will still > be possible?? > I understand that generally this would be a second choice, or second > citizen, but probably it could boost the jython part. In every case I would > appreciate any help if I decide to go this route. > thanx > kostas It's possible to halt it (and really simple): E.g.: if the user goes on and writes: while True: print 'something' and you import that module while it has that logic, you won't regain control over it (and that Thread would be lost and would keep one of your processors busy until eclipse exits -- as a separate process it can still be killed without any further problems in the Eclipse VM). The class where the logic for handling communication with the shell is the AbstractShell.java (so, that's the place you'd change). Cheers, Fabio |