develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH ext/POSIX/POSIX.pm] Re: sigaction.t under QNX

Thread Previous
From:
Gurusamy Sarathy
Date:
July 6, 2001 04:53
Subject:
Re: [PATCH ext/POSIX/POSIX.pm] Re: sigaction.t under QNX
Message ID:
200107061152.f66BqqY02303@smtp3.ActiveState.com
On Fri, 06 Jul 2001 10:57:07 BST, Mike Guy wrote:
>Gurusamy Sarathy <gsar@ActiveState.com> wrote
>> This is not thread-safe.  I suggest allocating the space for it on
>> the savestack, either via SSNEW() or using a newSVpv()+SAVEFREESV()
>> combo.
>
>Would a new mortalised SV do the trick instead?

The lifetimes may be different, so it is risky.  Using the savestack
guarantees it will stay live for exactly the right duration.


Sarathy
gsar@ActiveState.com

Thread Previous


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