From d0b69eceb446ac7176f96c3849c6997ec4ce134f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 10 Sep 2001 14:10:54 +0000 Subject: 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. --- acconfig.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'acconfig.h') diff --git a/acconfig.h b/acconfig.h index 69dc3bf4e1..ded68bbb9f 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 -- cgit v1.2.1