Searched refs:tcur (Results 1 – 4 of 4) sorted by relevance
590 PyThreadState *tcur; in PyGILState_Ensure() local599 tcur = (PyThreadState *)PyThread_get_key_value(autoTLSkey); in PyGILState_Ensure()600 if (tcur == NULL) { in PyGILState_Ensure()604 tcur = PyThreadState_New(autoInterpreterState); in PyGILState_Ensure()605 if (tcur == NULL) in PyGILState_Ensure()609 tcur->gilstate_counter = 0; in PyGILState_Ensure()613 current = PyThreadState_IsCurrent(tcur); in PyGILState_Ensure()617 PyEval_RestoreThread(tcur); in PyGILState_Ensure()625 ++tcur->gilstate_counter; in PyGILState_Ensure()640 PyThreadState *tcur = (PyThreadState *)PyThread_get_key_value( in PyGILState_Release() local[all …]
513 unsigned long tstop, treport, tcur; in do_main() local523 tcur = util_gettime(); in do_main()524 treport = tcur + 1000; in do_main()525 tstop = tcur + (cfg_num_secs * 1000); in do_main()535 tcur = util_gettime(); in do_main()536 if (tcur >= tstop) in do_main()538 if (tcur >= treport) { in do_main()542 treport = tcur + 1000; in do_main()554 tcur = util_gettime(); in do_main()555 if (tcur >= tstop) in do_main()[all …]
1359 PyThreadState *tcur = (PyThreadState *)PyThread_tss_get(&gilstate->autoTSSkey); in PyGILState_Ensure() local1361 if (tcur == NULL) { in PyGILState_Ensure()1363 tcur = PyThreadState_New(gilstate->autoInterpreterState); in PyGILState_Ensure()1364 if (tcur == NULL) { in PyGILState_Ensure()1370 tcur->gilstate_counter = 0; in PyGILState_Ensure()1374 current = PyThreadState_IsCurrent(tcur); in PyGILState_Ensure()1378 PyEval_RestoreThread(tcur); in PyGILState_Ensure()1386 ++tcur->gilstate_counter; in PyGILState_Ensure()
5197 int tcur, tcol; in rewindow() local5201 holdcur1 = holdcur2 = tcur = 0; in rewindow()5203 while (tcur < vs->cursor) { in rewindow()5207 holdcur2 = tcur; in rewindow()5210 tcol = newcol((unsigned char)vs->cbuf[tcur++], tcol); in rewindow()