perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Cholet <cho...@logilune.com>
Subject Re: MP_PERL_FREE_THREAD_KEY_WORKAROUND
Date Sun, 16 Jan 2005 15:52:38 GMT
Le 16 janv. 05, à 11:58, Gisle Aas a écrit :

> Stas,
>
> Could you apply this addition to the  
> MP_PERL_FREE_THREAD_KEY_WORKAROUND?
> This will avoid that the perl_fini patch now in ActivePerl blows up
> because we end up with calling FREE_THREAD_KEY twice.
>
> --Gisle
>
>
> diff -ru  
> modperl-2.0_20050116053812/src/modules/perl/modperl_perl_includes.h  
> modperl-2.0-hack/src/modules/perl/modperl_perl_includes.h
> ---  
> modperl-2.0_20050116053812/src/modules/perl/modperl_perl_includes.h	 
> 2005-01-13 06:46:07.000000000 +0100
> +++  
> modperl-2.0-hack/src/modules/perl/modperl_perl_includes.h	2005-01-16  
> 11:51:09.986693975 +0100
> @@ -146,6 +146,7 @@
>  #define MP_PERL_FREE_THREAD_KEY_WORKAROUND      \
>      if (PL_curinterp) {                         \
>          FREE_THREAD_KEY;                        \
> +        PL_curinterp = NULL;                    \
>      }
>  #else
>  #define MP_PERL_FREE_THREAD_KEY_WORKAROUND

also fixes darwin w/ threaded Perl + worker

--
Eric Cholet


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message