# Copyright (C) 2007, The Perl Foundation. # $Id: SharedRef.pm 21251 2007-09-13 06:35:30Z paultcochrane $ =head1 Parrot::Pmc2c::SharedRef Instance Methods =over 4 =cut package Parrot::Pmc2c::PMC::SharedRef; use base 'Parrot::Pmc2c::PMC::Ref'; use strict; use warnings; =item C Returns code that will lock the PMC for calling the underlying implementation of $method. =cut sub prederef { my ( $self, $method ) = @_; return 'LOCK_PMC(interp, pmc);'; } =item C Returns the unlocking code. =cut sub postderef { my ( $self, $method ) = @_; return 'UNLOCK_PMC(interp, pmc);'; } =back =cut 1; # Local Variables: # mode: cperl # cperl-indent-level: 4 # fill-column: 100 # End: # vim: expandtab shiftwidth=4: