summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-07-14 08:55:38 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-07-14 08:55:38 +0000
commit631cfb58c2bd693774ee9ffe59908af4423167d4 (patch)
treeef4efaf3ec8749310ab5430c08e82bf4f5c0428a /util.c
parente3acbfda4f677df31695d7b2b63b7e9e854a3514 (diff)
downloadperl-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util.c b/util.c
index d892e75120..df6bbf5f33 100644
--- a/util.c
+++ b/util.c
@@ -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;
}