RE: New 'threads' methods

2006-07-05 Thread Jerry D. Hedden
Elizabeth Mattijsen wrote: > 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 > T

Re: New 'threads' methods

2006-07-05 Thread Elizabeth Mattijsen
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->runn

RE: New 'threads' methods

2006-07-05 Thread Mike Pomraning
On Wed, 5 Jul 2006, Jerry D. Hedden wrote: > Mike Pomraning wrote: > > Thread::Running's threads->tojoin suggests that a class method to return all > > nondetached, nonrunning and nonjoined threads is useful. > > This would be syntactical sugar for: > > my @joinable = grep { $_->is_joinable(

RE: New 'threads' methods

2006-07-05 Thread Jerry D. Hedden
Jerry D. Hedden wrote: > Suggestions for other methods would also be welcomed. I think I'll add $thr->wantarray(), as well. Should it be called something else?

RE: New 'threads' methods

2006-07-05 Thread Jerry D. Hedden
Mike Pomraning wrote: > Thread::Running's threads->tojoin suggests that a class method to return all > nondetached, nonrunning and nonjoined threads is useful. This would be syntactical sugar for: my @joinable = grep { $_->is_joinable() } threads->list(); However, I would rather 'enhance' th

Re: New 'threads' methods

2006-07-05 Thread Mike Pomraning
On Wed, 5 Jul 2006, 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: I'm partial to 'running', 'detached', and the like. > Method to tell if a thread is still 'running' (i.e., the thread entry > point funct

RE: New 'threads' methods

2006-07-05 Thread Jan Dubois
On Wed, 05 Jul 2006, 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: >$

RE: New 'threads' methods

2006-07-05 Thread Daniel Rychlik
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: perl5-porters@perl.org

New 'threads' methods

2006-07-05 Thread Jerry D. Hedden
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()