From: Hye-Shik Chang Date: Thu, 4 Mar 2004 06:35:57 +0000 (+0000) Subject: SF Patch #902444: Use process scope thread on FreeBSD. System scope X-Git-Tag: v2.4a1~747 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30e97dbe96b3feee5108ec4b65be0ce80db89624;p=thirdparty%2FPython%2Fcpython.git SF Patch #902444: Use process scope thread on FreeBSD. System scope is too expensive on FreeBSD's KSE threading infrastructure and even test_threadedimport fails on default setting. --- diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 8645c0fb4487..d18d2de7253a 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -133,7 +133,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg) #ifdef THREAD_STACK_SIZE pthread_attr_setstacksize(&attrs, THREAD_STACK_SIZE); #endif -#ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED +#if defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) && !defined(__FreeBSD__) pthread_attr_setscope(&attrs, PTHREAD_SCOPE_SYSTEM); #endif