Home
last modified time | relevance | path

Searched refs:tcl_lock (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
D_tkinter.c199 static PyThread_type_lock tcl_lock = 0; variable
211 if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate;
214 tcl_tstate = NULL; if(tcl_lock)PyThread_release_lock(tcl_lock); Py_END_ALLOW_THREADS}
220 tcl_tstate = NULL; if(tcl_lock)PyThread_release_lock(tcl_lock); }
224 if(tcl_lock)PyThread_release_lock(tcl_lock); PyEval_RestoreThread((tstate)); }
228 if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; }
738 if (v->threaded && tcl_lock) { in Tkapp_New()
740 PyThread_free_lock(tcl_lock); in Tkapp_New()
741 tcl_lock = NULL; in Tkapp_New()
2746 if (!self && !tcl_lock) { in Tkapp_CreateFileHandler()
[all …]
/external/python/cpython3/Modules/
D_tkinter.c221 static PyThread_type_lock tcl_lock = 0; variable
234 if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate;
238 if(tcl_lock)PyThread_release_lock(tcl_lock); Py_END_ALLOW_THREADS}
244 tcl_tstate = NULL; if(tcl_lock)PyThread_release_lock(tcl_lock); }
248 if(tcl_lock) \
249 PyThread_release_lock(tcl_lock); PyEval_RestoreThread((tstate)); }
253 if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; }
637 if (v->threaded && tcl_lock) { in Tkapp_New()
639 PyThread_free_lock(tcl_lock); in Tkapp_New()
640 tcl_lock = NULL; in Tkapp_New()
[all …]