summaryrefslogtreecommitdiff
path: root/ext/Thread
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-11-02 12:03:08 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1998-11-02 12:03:08 +0000
commit136666271df3fddb92143e6fabf3bda463294b22 (patch)
treed69fb4f92512aab015299f2dc0c4f64dc6f0177f /ext/Thread
parentbc7f168bb73cba32db370bbcde1be14a357b5bd8 (diff)
downloadperl-136666271df3fddb92143e6fabf3bda463294b22.tar.gz
Replace ATTR_JOINABLE with true Configure probe
for PTHREAD_CREATE_JOINABLE (or equivalent: PTHREAD_CREATE_UNDETACHED or __UNDETACHED). Remove ATTR_JOINABLE itself: Thread.xs uses PTHREAD_CREATE_JOINABLE (or equivalent) directly. Really scan for <mach/cthreads.h> only if usethreads. p4raw-id: //depot/cfgperl@2181
Diffstat (limited to 'ext/Thread')
-rw-r--r--ext/Thread/Thread.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Thread/Thread.xs b/ext/Thread/Thread.xs
index 208daf2236..fb9aba9d92 100644
--- a/ext/Thread/Thread.xs
+++ b/ext/Thread/Thread.xs
@@ -229,7 +229,7 @@ newthread (SV *startsv, AV *initargs, char *classname)
static pthread_attr_t attr;
static int attr_inited = 0;
sigset_t fullmask, oldmask;
- static int attr_joinable = ATTR_JOINABLE;
+ static int attr_joinable = PTHREAD_CREATE_JOINABLE;
#endif
savethread = thr;