On 18.05.2017 11:46, Rick McGuire wrote:
>
>
> On Thu, May 18, 2017 at 5:00 AM, Rony G. Flatscher <[email protected]
> <mailto:[email protected]>> wrote:
>
>     rexxpg.pdf states in "8.16.170. Terminate": "Terminates the current Rexx 
> interpreter instance.
>     Terminate() may only be called from the thread context that originally 
> created the interpreter
>     instance. This call will wait for all threads to complete processing 
> before returning."
>
>       * Question 1: Why is it necessary to call Terminate() in the thread 
> that created it?
>
> Because that's the say it works. That is the main thread of the instance. It 
> waits for all of the
> other threads to complete and then cleans up. 
>  
>
>       * Question 2: Once Terminate() was invoked and returns, is it allowed 
> to use that Rexx
>         instance afterwards? (Currently it is possible to do so.)
>
> No, because you've terminated it. All of the resources have been cleaned up, 
> including the initial
> ThreadContext(). That's the point of Terminate().
Thank you!

---rony
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to