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
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
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(
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?
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
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
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:
>$
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
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()