|
Re: Detecting when a thread is don: msg#00169lang.realbasic.beginner
On Mar 22, 2006, at 8:36 AM, Russ Jones wrote: One way (of many, I am sure) is to have the calculation thread periodically (fairly frequently) set a boolean in the parent thread to say "I'm still alive", and eventually set another boolean in the parent thread to indicate successful completion.The only downside to the thread tickling a "I'm alive" flag all the time is that IF the thread sets it and then dies or gets killed the flag still says it's alive. A flag that timed out after a certain period and became false automatically would be handy. A timer that flipped the flag to false IF the timer itself did not get reset periodically would work for this sort of timed out flag. Have a "I'm alive" flag, and a timer. The thread initially sets the flag to true and starts the timer and continuously resets the timer so that the timers action never fires unless the thread is ended and does not reset the timer. The action of the timer sets the flag to false. _______________________________________________ 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> |
|---|---|---|
| Previous by Date: | Re: Detecting when a thread is don: 00169, Russ Jones |
|---|---|
| Next by Date: | Re: gettingstarted Digest, Vol 24, Issue 19: 00169, Toober |
| Previous by Thread: | Re: Detecting when a thread is doni: 00169, Russ Jones |
| Next by Thread: | Re: Detecting when a thread is don: 00169, FreeFL |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |