From: Petr G. <pet...@gm...> - 2007-01-11 07:37:58
|
On 1/10/07, Timothy Mann <ma...@po...> wrote: > Last, the application could add function calls to the code before it is > compiled. It would call application.waitUntilNotPaused() between each > statement. IMO this would be best approach (you probably wanted to say thread.waitWhilePaused()?). However to pause application at arbitrary JVM instuctions you could use either JVM emulator (that's complex and I am not aware of Java emulators written in java - so this is not practical) or java debugger (that presumably would slow your entire application). Forcibly blocking a thread at random points is deadlock-prone so it is not safe - even if you do not use locks they may occur in underlying Java code. However it is worth asking if Jython has some kind of Python interpreter at jyt...@li.... If it has - it would be not so hard to install some hooks there and use interpreted Jython code only (although Jython scripts will run slowly in this case). I hope this helps. -- Petr Gladkikh |