develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [PATCH 5.005_62] Allow XS code to lock arbitrary scalars

From:
Joshua N Pritikin
Date:
November 16, 1999 07:19
Subject:
Re: [PATCH 5.005_62] Allow XS code to lock arbitrary scalars
Message ID:
19991116101719.D2298@eq1062.wks.na.deuba.com
On Tue, Nov 16, 1999 at 09:33:54AM -0500, dan@sidhe.org wrote:
> The following patch provides a new macro, SvLOCK, which lets XS code snag a
> perl-level lock on an arbitrary SV *.

If you publish a macro like this for SvLOCK then you prohibit mixing in
FAKE_THREADS or continuations.  Granted, the Perl_call_* API already
complicates things but do we want to expand on this same messy design? 
State should not be kept on the C stack lightly.  I think a better
solution is to allow a varient of XSUBs that work more like opcodes.

-- 
"Does `competition' have an abstract purpose?"
       via, but not speaking for Deutsche Bank



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