--- Ken <[EMAIL PROTECTED]> wrote: > In general I'v found that Thread cancellation is very painful, > a simpler paradigm to utilize is the lock timeout with a Global > variable status check.
Rather than check a global variable you could simply pass a null event to the queue which instructs the thread to simply to finish (a.k.a. return) gracefully. That way you can avoid the lock timeout and polling. On the GUI thread, however a timeout and poll may be necessary depending on the framework. ____________________________________________________________________________________ Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/ ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------