summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2004-03-04 06:35:57 +0000
committerHye-Shik Chang <hyeshik@gmail.com>2004-03-04 06:35:57 +0000
commit5c80f81a60b276e77db77935d79212a342501d57 (patch)
tree57cd7861b6c75dee162a0878a38bdbeaf394c6f9 /Python/thread_pthread.h
parent21849ad8435e4a5fb28d02257c5390d4780d3a8b (diff)
downloadcpython-5c80f81a60b276e77db77935d79212a342501d57.tar.gz
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.
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 8645c0fb44..d18d2de725 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