logo       

Re: Detecting when a thread is don: msg#00146

lang.realbasic.beginner

Subject: Re: Detecting when a thread is don

At 7:38 AM -0800 3/21/06, Jay Rimalrick wrote:

I want to do something, but only after a specific
thread is finished. Is there a way to detect exactly
when a thread finishes (from outside of the thread)?

Sure -- have your thread set some public property on itself as the last thing it does in its Run event.

Or, if you prefer, check the .State property, which will be 4 (Thread.NotRunning) when the thread has finished.

Best,
- Joe

--

Joseph J. Strout
joe@xxxxxxxxxx
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise