summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-02 18:45:58 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-02 18:45:58 +0000
commit7a3f225871b642595bb66695465453bbff5332c7 (patch)
tree8f004a09efa5da17001cf29652508d5f6f89edcc /thread.h
parent0407a77bc74fb10c233a2d09d551311e3628eba5 (diff)
downloadperl-7a3f225871b642595bb66695465453bbff5332c7.tar.gz
usethreads build fixups for NeXTstep (as suggested by Hans Mulder)
p4raw-id: //depot/perl@4746
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index 87828aba9e..d03cef1e8e 100644
--- a/thread.h
+++ b/thread.h
@@ -73,7 +73,9 @@ struct perl_thread *getTHR (void);
} STMT_END
#define MUTEX_LOCK(m) mutex_lock(*m)
+#define MUTEX_LOCK_NOCONTEXT(m) mutex_lock(*m)
#define MUTEX_UNLOCK(m) mutex_unlock(*m)
+#define MUTEX_UNLOCK_NOCONTEXT(m) mutex_unlock(*m)
#define MUTEX_DESTROY(m) \
STMT_START { \
mutex_free(*m); \
@@ -109,7 +111,7 @@ struct perl_thread *getTHR (void);
#define JOIN(t, avp) (*(avp) = (AV *)cthread_join(t->self))
#define SET_THR(thr) cthread_set_data(cthread_self(), thr)
-#define THR cthread_data(cthread_self())
+#define THR ((struct perl_thread *)cthread_data(cthread_self()))
#define INIT_THREADS cthread_init()
#define YIELD cthread_yield()