Re: Shared object destruction: docs and historical behavior

[email protected] (Elizabeth Mattijsen) Sat, 22 Jun 2013 22:28:06 +0200
Newsgroups perl.ithreads
Message-ID <[email protected]>
On Jun 22, 2013, at 6:26 PM, Mike Pomraning <[email protected]> =
wrote:
> The threads::shared POD warns:
>=20
> [A shared] object's destructor may get called multiple times, once
> for each thread's scope exit.

FWIW, that's exactly the reason I once create Thread::Bless. =20


> Is this caution still accurate?

I have no idea.  I lost interest in ithreads sometime in 2003.


> Beginning with perl 5.8.9 / threads 1.71 / threads::shared 1.27 I
> cannot reproduce the behavior.  (5.8.8 does destroy objects multiple
> times for me, however.)

Would be interested in knowing whether this was fixed.  I will then =
adjust Thread::Bless to become a noop for 5.8.9 and higher.




Liz=