Searched refs:tcl_lock (Results 1 – 2 of 2) sorted by relevance
199 static PyThread_type_lock tcl_lock = 0; variable211 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 …]
221 static PyThread_type_lock tcl_lock = 0; variable234 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 …]