RE: New 'threads' methods

[email protected] ("Daniel Rychlik")
Newsgroups perl.perl5.porters,perl.ithreads
Message-ID <60EF0688716ED54E87435A187FB6BD6A022283F4@IS-MAILX.corp.securustech.net>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.