[Python-checkins] python/dist/src/Modules _tkinter.c,1.135,1.136
loewis@users.sourceforge.net
loewis@users.sourceforge.net
2002年12月12日 09:08:01 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv12114
Modified Files:
_tkinter.c
Log Message:
Support threads-enabled Tcl installations.
Index: _tkinter.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_tkinter.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -C2 -d -r1.135 -r1.136
*** _tkinter.c 7 Dec 2002 14:57:11 -0000 1.135
--- _tkinter.c 12 Dec 2002 17:07:58 -0000 1.136
***************
*** 10,15 ****
/* TCL/TK VERSION INFO:
! Only Tcl/Tk 8.0 and later are supported. Older versions are not
! supported. (Use Python 1.5.2 if you cannot upgrade your Tcl/Tk
libraries.)
*/
--- 10,15 ----
/* TCL/TK VERSION INFO:
! Only Tcl/Tk 8.2 and later are supported. Older versions are not
[...1240 lines suppressed...]
--- 2700,2704 ----
#if defined(WITH_THREAD) || defined(MS_WINDOWS)
Py_BEGIN_ALLOW_THREADS
! if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1);
tcl_tstate = event_tstate;
***************
*** 2299,2303 ****
tcl_tstate = NULL;
! PyThread_release_lock(tcl_lock);
if (result == 0)
Sleep(20);
--- 2706,2710 ----
tcl_tstate = NULL;
! if(tcl_lock)PyThread_release_lock(tcl_lock);
if (result == 0)
Sleep(20);