develooper Front page | perl.ithreads | Postings from June 2013

Shared object destruction: docs and historical behavior

Thread Next
From:
Mike Pomraning
Date:
June 22, 2013 16:27
Subject:
Shared object destruction: docs and historical behavior
Message ID:
CAPZFfA-V8+CkYzhzx6=qG0dfX+0SHNumGojFM0gOmOkMKVO88Q@mail.gmail.com
The threads::shared POD warns:

    [A shared] object's destructor may get called multiple times, once
for each thread's scope exit.

Is this caution still accurate?

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.)

-Mike

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About