Home
last modified time | relevance | path

Searched refs:tcur (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Python/
Dpystate.c590 PyThreadState *tcur; in PyGILState_Ensure() local
599 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 …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_flow_dissector.c513 unsigned long tstop, treport, tcur; in do_main() local
523 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 …]
/external/python/cpython3/Python/
Dpystate.c1359 PyThreadState *tcur = (PyThreadState *)PyThread_tss_get(&gilstate->autoTSSkey); in PyGILState_Ensure() local
1361 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()
/external/mksh/src/
Dedit.c5197 int tcur, tcol; in rewindow() local
5201 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()