summaryrefslogtreecommitdiff
path: root/perlvars.h
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-27 18:06:41 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-27 18:06:41 +0000
commitdce16143c60882f40eb787063b9483c00bb82139 (patch)
treedcb3c30695829781cc03b666fe1d2ae5eeda975c /perlvars.h
parentd22150111e6fba142fe332ab0f2c6233df82013c (diff)
downloadperl-dce16143c60882f40eb787063b9483c00bb82139.tar.gz
Make refcounts atomic for threading (dependent on appropriate
arch-dependent and compiler-dependent definitions in atomic.h or else falls back to a global mutex to protect refcounts). p4raw-id: //depot/perl@598
Diffstat (limited to 'perlvars.h')
-rw-r--r--perlvars.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/perlvars.h b/perlvars.h
index 8a72312e57..69206a5d7a 100644
--- a/perlvars.h
+++ b/perlvars.h
@@ -19,6 +19,7 @@ PERLVAR(Geval_owner, struct perl_thread *) /* Owner thread for doeval */
PERLVAR(Gnthreads, int) /* Number of threads currently */
PERLVAR(Gthreads_mutex, perl_mutex) /* Mutex for nthreads and thread list */
PERLVAR(Gnthreads_cond, perl_cond) /* Condition variable for nthreads */
+PERLVAR(Gsvref_mutex, perl_mutex) /* Mutex for SvREFCNT_{inc,dec} */
PERLVARI(Gthreadsv_names, char *, THREADSV_NAMES)
#ifdef FAKE_THREADS
PERLVAR(Gcurthr, struct perl_thread *) /* Currently executing (fake) thread */