summaryrefslogtreecommitdiffstats
path: root/pyconfig.h.in
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 /pyconfig.h.in
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 'pyconfig.h.in')
-rw-r--r--pyconfig.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in
index c47a8fb..9250e66 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -214,6 +214,9 @@
/* The number of bytes in a pthread_t. */
#undef SIZEOF_PTHREAD_T
+/* Defined if PTHREAD_SCOPE_SYSTEM supported. */
+#undef PTHREAD_SYSTEM_SCHED_SUPPORTED
+
/* Define to `int' if <sys/types.h> doesn't define. */
#undef socklen_t