[Python-checkins] python/dist/src/Python thread_pthread.h, 2.51, 2.52

perky at users.sourceforge.net perky at users.sourceforge.net
Thu Mar 4 01:36:00 EST 2004


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30607/Python

Modified Files:
	thread_pthread.h 
Log Message:
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.


Index: thread_pthread.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_pthread.h,v
retrieving revision 2.51
retrieving revision 2.52
diff -C2 -d -r2.51 -r2.52
*** thread_pthread.h	3 Mar 2004 08:42:23 -0000	2.51
--- thread_pthread.h	4 Mar 2004 06:35:57 -0000	2.52
***************
*** 134,138 ****
  	pthread_attr_setstacksize(&attrs, THREAD_STACK_SIZE);
  #endif
! #ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED
          pthread_attr_setscope(&attrs, PTHREAD_SCOPE_SYSTEM);
  #endif
--- 134,138 ----
  	pthread_attr_setstacksize(&attrs, THREAD_STACK_SIZE);
  #endif
! #if defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) && !defined(__FreeBSD__)
          pthread_attr_setscope(&attrs, PTHREAD_SCOPE_SYSTEM);
  #endif




More information about the Python-checkins mailing list