At 9:39 AM -0700 7/5/06, Jerry D. Hedden wrote:
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.

As you seem to adopt much of the functionality of the Thread::Running module

  http://search.cpan.org/~elizabeth/Thread-Running/

you might want to keep the same method names as a courtesy to the Thread::Running users. And it would allow me to retract Thread::Running from CPAN altogether.


Liz

Reply via email to