summaryrefslogtreecommitdiffstats
path: root/acconfig.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-10 14:10:54 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-10 14:10:54 (GMT)
commitd0b69eceb446ac7176f96c3849c6997ec4ce134f (patch)
tree4359c27de8896645e053c1d673a5829a0f05f7cc /acconfig.h
parent47f40343b304cbd92dec796cdb2b647743a95c01 (diff)
downloadcpython-d0b69eceb446ac7176f96c3849c6997ec4ce134f.zip
cpython-d0b69eceb446ac7176f96c3849c6997ec4ce134f.tar.gz
cpython-d0b69eceb446ac7176f96c3849c6997ec4ce134f.tar.bz2
Improve threading on Solaris, according to SF patch #460269, submitted
by bbrox@bbrox.org / lionel.ulmer@free.fr. This adds a configure check and if all goes well turns on the PTHREAD_SCOPE_SYSTEM thread attribute for new threads. This should remove the need to add tiny sleeps at the start of threads to allow other threads to be scheduled.
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h
index 69dc3bf..ded68bb 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -155,6 +155,9 @@
/* The number of bytes in a pthread_t. */
#undef SIZEOF_PTHREAD_T
+/* Defined if PTHREAD_SCOPE_SYSTEM supported. */
+#undef PTHREAD_SYSTEM_SCHED_SUPPORTED
+
/* sizeof(void *) */
#undef SIZEOF_VOID_P