Commit 30e97dbe authored by Hye-Shik Chang's avatar Hye-Shik Chang

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.
parent e2b61e01
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment