[Python-checkins] python/dist/src/Python pystate.c,2.28,2.29

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sun, 13 Jul 2003 03:41:55 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv6147/Python

Modified Files:
	pystate.c 
Log Message:
Initialize thread_id to 0 in unthreaded build. Fixes #770247.


Index: pystate.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pystate.c,v
retrieving revision 2.28
retrieving revision 2.29
diff -C2 -d -r2.28 -r2.29
*** pystate.c	28 Jun 2003 21:53:52 -0000	2.28
--- pystate.c	13 Jul 2003 10:41:53 -0000	2.29
***************
*** 145,149 ****
--- 145,153 ----
  		tstate->gilstate_counter = 0;
  		tstate->async_exc = NULL;
+ #ifdef WITH_THREAD
  		tstate->thread_id = PyThread_get_thread_ident();
+ #else
+ 		tstate->thread_id = 0;
+ #endif
  
  		tstate->dict = NULL;