comparison Python/thread_pthread.h @ 31614:c2df8a5c357e legacy-trunk

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.
author Hye-Shik Chang <hyeshik@gmail.com>
date Thu, 04 Mar 2004 06:35:57 +0000
parents 0979fa062deb
children 78bd25b42d46
comparison
equal deleted inserted replaced
31613:46df08eb0839 31614:c2df8a5c357e
131 pthread_attr_init(&attrs); 131 pthread_attr_init(&attrs);
132 #endif 132 #endif
133 #ifdef THREAD_STACK_SIZE 133 #ifdef THREAD_STACK_SIZE
134 pthread_attr_setstacksize(&attrs, THREAD_STACK_SIZE); 134 pthread_attr_setstacksize(&attrs, THREAD_STACK_SIZE);
135 #endif 135 #endif
136 #ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED 136 #if defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) && !defined(__FreeBSD__)
137 pthread_attr_setscope(&attrs, PTHREAD_SCOPE_SYSTEM); 137 pthread_attr_setscope(&attrs, PTHREAD_SCOPE_SYSTEM);
138 #endif 138 #endif
139 139
140 /* Mask all signals in the current thread before creating the new 140 /* Mask all signals in the current thread before creating the new
141 * thread. This causes the new thread to start with all signals 141 * thread. This causes the new thread to start with all signals