diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-07-14 08:55:38 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-07-14 08:55:38 +0000 |
commit | 631cfb58c2bd693774ee9ffe59908af4423167d4 (patch) | |
tree | ef4efaf3ec8749310ab5430c08e82bf4f5c0428a /util.c | |
parent | e3acbfda4f677df31695d7b2b63b7e9e854a3514 (diff) | |
download | perl-631cfb58c2bd693774ee9ffe59908af4423167d4.tar.gz |
rename totally bletcherous SvLOCK() thingy (doesn't do what the
name suggests anyway)
p4raw-id: //depot/perl@6398
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -3502,11 +3502,9 @@ Perl_sv_lock(pTHX_ SV *osv) MAGIC *mg; SV *sv = osv; - SvLOCK(osv); + LOCK_SV_LOCK_MUTEX; if (SvROK(sv)) { sv = SvRV(sv); - SvUNLOCK(osv); - SvLOCK(sv); } mg = condpair_magic(sv); @@ -3523,7 +3521,7 @@ Perl_sv_lock(pTHX_ SV *osv) MUTEX_UNLOCK(MgMUTEXP(mg)); SAVEDESTRUCTOR_X(Perl_unlock_condpair, sv); } - SvUNLOCK(sv); + UNLOCK_SV_LOCK_MUTEX; return sv; } |