All are good identifiers. I particularly like $thr->is_running(), $thr->is_detached(), and $thr->is_joinable.
Thank you for your work! =Dan J. Rychlik -----Original Message----- From: Jerry D. Hedden [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 11:39 AM To: [email protected]; [email protected] Subject: New 'threads' methods I'm planning to add some new methods to the 'threads' module, and I would like a concensus on the method names: Method to tell if a thread is still 'running' (i.e., the thread entry point function has not yet exited). Possible names: $thr->running() $thr->isrunning() $thr->is_running() Method to tell if a thread is detached. Possible names: $thr->detached() $thr->isdetached() $thr->is_detached() Method to tell if a thread is ready to be joined. This returns true if a thread is not detached, is no longer running, and has not been previously joined. Possible names: $thr->joinable() $thr->isjoinable() $thr->is_joinable() $thr->canjoin() $thr->can_join() $thr->join_ready() Suggestions for other methods would also be welcomed.
