summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-11-13 18:01:27 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-11-13 18:01:27 +0000
commit458fb5819c1ac395635ee1129f0f694cb0128ffd (patch)
tree123f1ed4ff91c494e3a36366f37f2cf0fbb87c06 /thread.h
parentc09156bb55f832ab6700e99026187942841f0ae4 (diff)
downloadperl-458fb5819c1ac395635ee1129f0f694cb0128ffd.tar.gz
Rewrite thread return code to distinguish between ordinary return
and die() and make join propagate the die. Add tiny method eval which just does "return eval { shift->join; }". Add Thread::Specific class for access to thread specific user data along with specific.t. Rename Class to classname throughout Thread.xs for consistency. Fix pp_specific to pp_threadsv in global.sym. Add support to pp_entersub in pp_hot.c to lock stash for static locked methods. p4raw-id: //depot/perl@248
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.h b/thread.h
index d2455dc838..cda4754ebf 100644
--- a/thread.h
+++ b/thread.h
@@ -243,10 +243,10 @@ typedef struct thread *Thread;
#define THRf_ZOMBIE 3
#define THRf_DEAD 4
-#define THRf_DIE_FATAL 8
+#define THRf_DID_DIE 8
/* ThrSTATE(t) and ThrSETSTATE(t) must only be called while holding t->mutex */
-#define ThrSTATE(t) ((t)->flags)
+#define ThrSTATE(t) ((t)->flags & THRf_STATE_MASK)
#define ThrSETSTATE(t, s) STMT_START { \
(t)->flags &= ~THRf_STATE_MASK; \
(t)->flags |= (s); \