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/python/cpython3/Python/
Dpystate.c1038 PyThreadState *tcur; in PyGILState_Ensure() local
1049 tcur = (PyThreadState *)PyThread_tss_get(&_PyRuntime.gilstate.autoTSSkey); in PyGILState_Ensure()
1050 if (tcur == NULL) { in PyGILState_Ensure()
1054 tcur = PyThreadState_New(_PyRuntime.gilstate.autoInterpreterState); in PyGILState_Ensure()
1055 if (tcur == NULL) in PyGILState_Ensure()
1059 tcur->gilstate_counter = 0; in PyGILState_Ensure()
1063 current = PyThreadState_IsCurrent(tcur); in PyGILState_Ensure()
1067 PyEval_RestoreThread(tcur); in PyGILState_Ensure()
1075 ++tcur->gilstate_counter; in PyGILState_Ensure()
1090 PyThreadState *tcur = (PyThreadState *)PyThread_tss_get( in PyGILState_Release() local
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_flow_dissector.c515 unsigned long tstop, treport, tcur; in do_main() local
525 tcur = util_gettime(); in do_main()
526 treport = tcur + 1000; in do_main()
527 tstop = tcur + (cfg_num_secs * 1000); in do_main()
537 tcur = util_gettime(); in do_main()
538 if (tcur >= tstop) in do_main()
540 if (tcur >= treport) { in do_main()
544 treport = tcur + 1000; in do_main()
556 tcur = util_gettime(); in do_main()
557 if (tcur >= tstop) in do_main()
[all …]
/external/mksh/src/
Dedit.c5159 int tcur, tcol; in rewindow() local
5163 holdcur1 = holdcur2 = tcur = 0; in rewindow()
5165 while (tcur < vs->cursor) { in rewindow()
5169 holdcur2 = tcur; in rewindow()
5172 tcol = newcol((unsigned char)vs->cbuf[tcur++], tcol); in rewindow()