New 'threads' methods
[email protected] ("Jerry D. Hedden")
| Newsgroups | perl.perl5.porters,perl.ithreads |
|---|---|
| Message-ID | <20060705093921.fb30e530d17747c2b054d625b8945d88.f0e9c8bc4a.wbe@email.secureserver.net> |
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.