[Python-Dev] PEP needed? Introducing Tcl objects

David Ascher DavidA@ActiveState.com
Fri, 15 Feb 2002 15:17:17 -0800


While we're on the topic of Tkinter, I got an email from Jeff Hobbs (Tcl
guy at AS) re: Tkinter.  He suspects that in:

                Py_BEGIN_ALLOW_THREADS
                PyThread_acquire_lock(tcl_lock, 1);
                tcl_tstate = tstate;
                result = Tcl_DoOneEvent(TCL_DONT_WAIT);
                tcl_tstate = NULL;
                PyThread_release_lock(tcl_lock);
                if (result == 0)
                        Sleep(20);
                Py_END_ALLOW_THREADS


The Sleep() call is a perf problem.  If anyone wants to discuss it with
Jeff, I've cc'ed him here.

building bridges,

--da