ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activeperl
activeperl
RE: threads package missing is_running
by Andy Bach other posts by this author
May 2 2008 9:53AM messages near this date
RE: threads package missing is_running | Re: threads package missing is_running
>  
# The following gives an error that is_running.al is missing.
# Tried threads-> list (threads::running) to search and compare: gave
# bareword error.

Tried the code on linux, got the same error so activeperl is off the hook. 
"list" should be:
$thr-> list()

The perldocs show no is_running method, nor a kill() method, for threads. 
I think
$thr-> kill('SIGUSR1');

is a mix of info here, you mean to send a signal to $thr but
while ($thr-> list() ) {

isn't ... er quite right?  Seems you need join/detach and to keep the 
thread ids somewhere

a

-------------------
Andy Bach
Systems Mangler
Internet: andy_bach@[...].gov
Voice: (608) 261-5738 Fax: 264-5932

"When angry, count to four; when very angry, swear."
Mark Twain

_______________________________________________
ActivePerl mailing list
ActivePerl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
webmaster
Brian Raven
Brian Raven
Brian Raven
webmaster
Brian Raven
Brian Raven
Bill Luebkert
Andy Bach
webmaster
Andy Bach
Lyle - CosmicPerl.com Support
webmaster
Lyle - CosmicPerl.com Support

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved