summaryrefslogtreecommitdiff
path: root/thread.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 /thread.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 'thread.h')
-rw-r--r--thread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread.h b/thread.h
index 2e1a03be52..b375c98da1 100644
--- a/thread.h
+++ b/thread.h
@@ -175,6 +175,7 @@ struct thread {
#ifdef ADD_THREAD_INTERN
struct thread_intern i; /* Platform-dependent internals */
#endif
+ char trailing_nul; /* For the sake of thrsv, t->Toursv */
};
typedef struct thread *Thread;