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 webmaster other posts by this author
May 2 2008 8:42AM messages near this date
Re: threads package missing is_running | Re: threads package missing is_running
Yes, the threads module comes pre-packaged with ActivePerl, and does not
appear to exist according to PPM, so it's not upgradable without upgrading
ActivePerl, which involves me dealing with company red-tape.

The elusive "is_running.al" shouldn't need to exist outside of the module
itself.  It's all part of Perl\lib\threads.pm and its associated
lib\auto\threads\ library.

Additionally, I can't seem to get any of the constants from threads to
work.  Documentation refers to threads::running and I get a bareword error
when I try to use that.

See documentation at http://perldoc.perl.org/threads.html

> > Hi All,
> >
> > I'm attempting to use the 'threads' module in ActivePerl 5.8.0 build
> > 805.
> > Everything seems to work until I attempt to shut the process down
> > gracefully.  When I call is_running() the whole thing crashes with the
> > following output (main thread starts the shutdown after 10 seconds):
> >
> > Starting Thread Test
> > This is the main thread (1)
> > This is the child thread (0)
> > This is the main thread (2)
> > This is the main thread (3)
> > This is the child thread (1)
> > This is the main thread (4)
> > This is the main thread (5)
> > This is the child thread (2)
> > This is the main thread (6)
> > This is the main thread (7)
> > This is the child thread (3)
> > This is the main thread (8)
> > This is the main thread (9)
> > This is the child thread (4)
> > This is the main thread (10)
> > Can't locate auto/threads/is_running.al in @INC (@INC contains:
> > C:/Perl/lib C:/P
> > erl/site/lib .) at thread_test.pl line 26
> > A thread exited while 2 other threads were still running.
> >
> > I'm including the module as follows:
> >
> > use threads;
> > use threads::shared;
> > use strict;
> >
> > Any idea why it can't find that function?
> >
> > - Steve
> >
> 
>  Have you checked that file actually exists and it's location? Do you
>  have the latest versions of the modules installed?
> 
> 
> 
>  Lyle
> 


_______________________________________________
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