summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-10-16 16:26:53 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-10-16 16:26:53 +0000
commit8023c3ceb7a7110c55b3159dff471253f72f7e15 (patch)
treeee70aca385b7dddd1911486a6791aae09ad09b3b /perl.h
parent1f2bfc8a4408af651fa6e1f274db91de216cc5d4 (diff)
downloadperl-8023c3ceb7a7110c55b3159dff471253f72f7e15.tar.gz
Correct threads_mutex locking in main thread destruction.
Add per-interp thrsv to hold SV struct thread for main thread. Move Thread.xs MUTEX_DESTROY from end of threadstart to remove_thread. Add Thread/list.t test of Thread->list method. Let Thread::Semaphore methods up and down take an extra argument. p4raw-id: //depot/perl@140
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 0287e6a15a..c8eee3d111 100644
--- a/perl.h
+++ b/perl.h
@@ -1957,6 +1957,11 @@ IEXT int Ilaststatval IINIT(-1);
IEXT I32 Ilaststype IINIT(OP_STAT);
IEXT SV * Imess_sv;
+#ifdef USE_THREADS
+/* threads stuff */
+IEXT SV * Ithrsv; /* holds struct thread for main thread */
+#endif /* USE_THREADS */
+
#undef IEXT
#undef IINIT