You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Torsten Curdt <tc...@apache.org> on 2007/02/24 16:10:02 UTC
[javaflow] Re: JavaFlow in OSGi
> Let's assume that I have a class extends Thread and it is complied
> and packed in a file of .jar format. Addtionally, I consider the
> class as a black box. How can I acquire the continuation object of
> this class in any random instant point of time? Is it mandatory to
> inject/weave "Continuation.suspend" into its all functions in order
> to capture its states?
That's not what continuations are really about ...sounds you are more
after thread serialization. For javaflow you have call out and tell
when you want to suspend ...at least that's how it is now.
That being said triggering the suspend from an external Thread should
be possible. Of course that raises concurrency issues that need to be
solved. (I have actually already played with that some while ago)
cheers
--
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org