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 Brian Raven other posts by this author
May 2 2008 8:37AM messages near this date
threads package missing is_running | RE: threads package missing is_running
webmaster@[...].com <>  wrote:
>  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?

How are you calling it?

A small self contained example script that demonstrates the problem
would help.

Note that your Perl version is pretty old. Perl's threading was not
nearly as mature as it is now (and some would say that it is still not
mature enough for production use). I recommend installing a much later
version.

HTH

-- 
Brian Raven 

=========================================
Atos Euronext Market Solutions Disclaimer
=========================================

The information contained in this e-mail is confidential and solely for the intended address
ee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this emai
l may be unlawful.
If you have received this email in error, please notify the sender immediately and delete it
 from your system. The views expressed in this message do not necessarily reflect those of A
tos Euronext Market Solutions.

Atos Euronext Market Solutions Limited - Registered in England & Wales with registration no.
 3962327.  Registered office address at 25 Bank Street London E14 5NQ United Kingdom. 
Atos Euronext Market Solutions SAS - Registered in France with registration no. 425 100 294.
  Registered office address at 6/8 Boulevard Haussmann 75009 Paris France.

L'information contenue dans cet e-mail est confidentielle et uniquement destinee a la (aux) 
personnes a laquelle (auxquelle(s)) elle est adressee. Toute copie, publication ou diffusion
 de cet email est interdite. Si cet e-mail vous parvient par erreur, nous vous prions de bie
n vouloir prevenir l'expediteur immediatement et d'effacer le e-mail et annexes jointes de v
otre systeme. Le contenu de ce message electronique ne represente pas necessairement la posi
tion ou le point de vue d'Atos Euronext Market Solutions.
Atos Euronext Market Solutions Limited Société de droit anglais, enregistrée au Royaume U
ni sous le numéro 3962327, dont le siège social se situe 25 Bank Street E14 5NQ Londres Ro
yaume Uni.

Atos Euronext Market Solutions SAS, société par actions simplifiée, enregistré au regist
re dui commerce et des sociétés sous le numéro 425 100 294 RCS Paris et dont le siège so
cial se situe 6/8 Boulevard Haussmann 75009 Paris France.
=========================================

_______________________________________________
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