summaryrefslogtreecommitdiff
path: root/perlvars.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-29 04:53:00 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-29 04:53:00 +0000
commitba869debd80c55cfae8e9d4de0991d62f9efcb9b (patch)
tree73f5810de88203f0df413aee0bc7f3c94d686329 /perlvars.h
parentd5c3ff09f505a33428a0772c6e16c91e1df4ce85 (diff)
downloadperl-ba869debd80c55cfae8e9d4de0991d62f9efcb9b.tar.gz
support fetching current interpreter from TLS under useithreads
p4raw-id: //depot/perl@5342
Diffstat (limited to 'perlvars.h')
-rw-r--r--perlvars.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/perlvars.h b/perlvars.h
index 220574a2be..4df31bb4a0 100644
--- a/perlvars.h
+++ b/perlvars.h
@@ -16,7 +16,11 @@
/* global state */
PERLVAR(Gcurinterp, PerlInterpreter *)
/* currently running interpreter
- * XXX this needs to be in TLS */
+ * (initial parent interpreter under
+ * useithreads) */
+#if defined(USE_THREADS) || defined(USE_ITHREADS)
+PERLVAR(Gthr_key, perl_key) /* key to retrieve per-thread struct */
+#endif
/* constants (these are not literals to facilitate pointer comparisons) */
PERLVARIC(GYes, char *, "1")