summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2020-07-19 18:01:36 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2020-07-20 21:31:43 +0100
commit573edd37603ddf5d0137224a22fa2ec4915388fe (patch)
tree477767c43d1dde6717f610a41a674b56d5c2a0b8 /thread.h
parentae955d3a183337a4770d39640a21da146cf97bc7 (diff)
downloadperl-573edd37603ddf5d0137224a22fa2ec4915388fe.tar.gz
Remove the final remnants of 5005threads support
Only THREAD_RET_TYPE is still used.
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/thread.h b/thread.h
index 2603d549f5..e695889bbe 100644
--- a/thread.h
+++ b/thread.h
@@ -144,11 +144,7 @@
*c = 0; \
} STMT_END
-#define THREAD_CREATE(thr, f) (thr->self = cthread_fork(f, thr), 0)
-#define THREAD_POST_CREATE(thr) NOOP
-
#define THREAD_RET_TYPE any_t
-#define THREAD_RET_CAST(x) ((any_t) x)
#define DETACH(t) cthread_detach(t->self)
#define JOIN(t, avp) (*(avp) = MUTABLE_AV(cthread_join(t->self)))
@@ -363,7 +359,6 @@
#ifndef THREAD_RET_TYPE
# define THREAD_RET_TYPE void *
-# define THREAD_RET_CAST(p) ((void *)(p))
#endif /* THREAD_RET */
# define LOCK_DOLLARZERO_MUTEX MUTEX_LOCK(&PL_dollarzero_mutex)