Home
last modified time | relevance | path

Searched refs:tstate (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cpython2/Python/
Dpystate.c53 static void _PyGILState_NoteThreadState(PyThreadState* tstate);
159 PyThreadState *tstate = (PyThreadState *)malloc(sizeof(PyThreadState)); in new_threadstate() local
164 if (tstate != NULL) { in new_threadstate()
165 tstate->interp = interp; in new_threadstate()
167 tstate->frame = NULL; in new_threadstate()
168 tstate->recursion_depth = 0; in new_threadstate()
169 tstate->tracing = 0; in new_threadstate()
170 tstate->use_tracing = 0; in new_threadstate()
171 tstate->tick_counter = 0; in new_threadstate()
172 tstate->gilstate_counter = 0; in new_threadstate()
[all …]
Dceval.c86 PyThreadState *tstate = PyThreadState_Get(); in dump_tsc() local
87 if (!tstate->interp->tscdump) in dump_tsc()
271 PyEval_AcquireThread(PyThreadState *tstate) in PyEval_AcquireThread() argument
273 if (tstate == NULL) in PyEval_AcquireThread()
278 if (PyThreadState_Swap(tstate) != NULL) in PyEval_AcquireThread()
284 PyEval_ReleaseThread(PyThreadState *tstate) in PyEval_ReleaseThread() argument
286 if (tstate == NULL) in PyEval_ReleaseThread()
288 if (PyThreadState_Swap(NULL) != tstate) in PyEval_ReleaseThread()
302 PyThreadState *tstate; in PyEval_ReInitThreads() local
317 tstate = PyThreadState_GET(); in PyEval_ReInitThreads()
[all …]
Dsysmodule.c52 PyThreadState *tstate = PyThreadState_GET(); in PySys_GetObject() local
53 PyObject *sd = tstate->interp->sysdict; in PySys_GetObject()
74 PyThreadState *tstate = PyThreadState_GET(); in PySys_SetObject() local
75 PyObject *sd = tstate->interp->sysdict; in PySys_SetObject()
152 PyThreadState *tstate; in sys_exc_info() local
153 tstate = PyThreadState_GET(); in sys_exc_info()
156 tstate->exc_type != NULL ? tstate->exc_type : Py_None, in sys_exc_info()
157 tstate->exc_value != NULL ? tstate->exc_value : Py_None, in sys_exc_info()
158 tstate->exc_traceback != NULL ? in sys_exc_info()
159 tstate->exc_traceback : Py_None); in sys_exc_info()
[all …]
Derrors.c27 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Restore() local
39 oldtype = tstate->curexc_type; in PyErr_Restore()
40 oldvalue = tstate->curexc_value; in PyErr_Restore()
41 oldtraceback = tstate->curexc_traceback; in PyErr_Restore()
43 tstate->curexc_type = type; in PyErr_Restore()
44 tstate->curexc_value = value; in PyErr_Restore()
45 tstate->curexc_traceback = traceback; in PyErr_Restore()
78 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Occurred() local
80 return tstate->curexc_type; in PyErr_Occurred()
151 PyThreadState *tstate = NULL; in PyErr_NormalizeException() local
[all …]
Dpythonrun.c158 PyThreadState *tstate; in Py_InitializeEx() local
200 tstate = PyThreadState_New(interp); in Py_InitializeEx()
201 if (tstate == NULL) in Py_InitializeEx()
203 (void) PyThreadState_Swap(tstate); in Py_InitializeEx()
280 _PyGILState_Init(interp, tstate); in Py_InitializeEx()
407 PyThreadState *tstate; in Py_Finalize() local
427 tstate = PyThreadState_GET(); in Py_Finalize()
428 interp = tstate->interp; in Py_Finalize()
579 PyThreadState *tstate, *save_tstate; in Py_NewInterpreter() local
589 tstate = PyThreadState_New(interp); in Py_NewInterpreter()
[all …]
Dtraceback.c108 PyThreadState *tstate = PyThreadState_GET(); in PyTraceBack_Here() local
109 PyTracebackObject *oldtb = (PyTracebackObject *) tstate->curexc_traceback; in PyTraceBack_Here()
113 tstate->curexc_traceback = (PyObject *)tb; in PyTraceBack_Here()
/external/python/cpython2/Modules/
Dthreadmodule.c398 PyThreadState *tstate; in local_clear() local
405 && (tstate = PyThreadState_Get()) in local_clear()
406 && tstate->interp) { in local_clear()
407 for(tstate = PyInterpreterState_ThreadHead(tstate->interp); in local_clear()
408 tstate; in local_clear()
409 tstate = PyThreadState_Next(tstate)) in local_clear()
410 if (tstate->dict && in local_clear()
411 PyDict_GetItem(tstate->dict, self->key)) in local_clear()
412 PyDict_DelItem(tstate->dict, self->key); in local_clear()
605 PyThreadState *tstate; member
[all …]
Dpyexpat.c273 trace_frame(PyThreadState *tstate, PyFrameObject *f, int code, PyObject *val) in trace_frame() argument
276 if (!tstate->use_tracing || tstate->tracing) in trace_frame()
278 if (tstate->c_profilefunc != NULL) { in trace_frame()
279 tstate->tracing++; in trace_frame()
280 result = tstate->c_profilefunc(tstate->c_profileobj, in trace_frame()
282 tstate->use_tracing = ((tstate->c_tracefunc != NULL) in trace_frame()
283 || (tstate->c_profilefunc != NULL)); in trace_frame()
284 tstate->tracing--; in trace_frame()
288 if (tstate->c_tracefunc != NULL) { in trace_frame()
289 tstate->tracing++; in trace_frame()
[all …]
D_tkinter.c210 { PyThreadState *tstate = PyThreadState_Get(); Py_BEGIN_ALLOW_THREADS \
211 if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate;
223 { PyThreadState *tstate = tcl_tstate; tcl_tstate = NULL; \
224 if(tcl_lock)PyThread_release_lock(tcl_lock); PyEval_RestoreThread((tstate)); }
227 { PyThreadState *tstate = PyEval_SaveThread(); \
228 if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; }
2998 PyThreadState *tstate = PyThreadState_Get(); in Tkapp_MainLoop() local
3042 tcl_tstate = tstate; in Tkapp_MainLoop()
/external/syslinux/core/lwip/src/netif/ppp/
Dvj.c54 register struct cstate *tstate = comp->tstate; in vj_compress_init() local
62 tstate[i].cs_id = i; in vj_compress_init()
63 tstate[i].cs_next = &tstate[i - 1]; in vj_compress_init()
65 tstate[0].cs_next = &tstate[MAX_SLOTS - 1]; in vj_compress_init()
66 tstate[0].cs_id = 0; in vj_compress_init()
67 comp->last_cs = &tstate[0]; in vj_compress_init()
Dvj.h143 struct cstate tstate[MAX_SLOTS]; /* xmit connection states */ member
/external/strace/linux/sparc64/
Dset_error.c4 sparc_regs.tstate |= 0x1100000000UL; in arch_set_error()
12 sparc_regs.tstate &= ~0x1100000000UL; in arch_set_success()
Dget_error.c4 if (sparc_regs.tstate & 0x1100000000UL) { in get_error()
/external/python/cpython2/Objects/
Dgenobject.c47 PyThreadState *tstate = PyThreadState_GET(); in gen_send_ex() local
79 f->f_tstate = tstate; in gen_send_ex()
80 Py_XINCREF(tstate->frame); in gen_send_ex()
82 f->f_back = tstate->frame; in gen_send_ex()
91 assert(f->f_back == tstate->frame); in gen_send_ex()
Dobject.c2452 PyThreadState *tstate = PyThreadState_GET(); in _PyTrash_thread_deposit_object() local
2456 _Py_AS_GC(op)->gc.gc_prev = (PyGC_Head *) tstate->trash_delete_later; in _PyTrash_thread_deposit_object()
2457 tstate->trash_delete_later = op; in _PyTrash_thread_deposit_object()
2490 PyThreadState *tstate = PyThreadState_GET(); in _PyTrash_thread_destroy_chain() local
2491 while (tstate->trash_delete_later) { in _PyTrash_thread_destroy_chain()
2492 PyObject *op = tstate->trash_delete_later; in _PyTrash_thread_destroy_chain()
2495 tstate->trash_delete_later = in _PyTrash_thread_destroy_chain()
2505 ++tstate->trash_delete_nesting; in _PyTrash_thread_destroy_chain()
2507 --tstate->trash_delete_nesting; in _PyTrash_thread_destroy_chain()
Dframeobject.c622 PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals, in PyFrame_New() argument
625 PyFrameObject *back = tstate->frame; in PyFrame_New()
736 f->f_tstate = tstate; in PyFrame_New()
Ddictobject.c713 PyThreadState *tstate; in PyDict_GetItem() local
731 tstate = _PyThreadState_Current; in PyDict_GetItem()
732 if (tstate != NULL && tstate->curexc_type != NULL) { in PyDict_GetItem()
/external/python/cpython2/Demo/pysvr/
Dpysvr.c278 PyThreadState *tstate; in run_interpreter() local
286 tstate = Py_NewInterpreter(); in run_interpreter()
287 if (tstate == NULL) { in run_interpreter()
337 Py_EndInterpreter(tstate); in run_interpreter()
/external/python/cpython2/Include/
Dceval.h126 PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
127 PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
/external/llvm/test/MC/Sparc/
Dsparcv9-instructions.s123 ! V8-NEXT: wrpr %g6,%i6,%tstate
124 ! V9: wrpr %g6, %fp, %tstate ! encoding: [0x85,0x91,0x80,0x1e]
125 wrpr %g6,%i6,%tstate
184 ! V8-NEXT: wrpr %g6,255,%tstate
185 ! V9: wrpr %g6, 255, %tstate ! encoding: [0x85,0x91,0xa0,0xff]
186 wrpr %g6,255,%tstate
245 ! V8-NEXT: rdpr %tstate,%i5
246 ! V9: rdpr %tstate, %i5 ! encoding: [0xbb,0x50,0x80,0x00]
247 rdpr %tstate,%i5
/external/ppp/pppd/include/net/
Dslcompress.h134 struct cstate tstate[MAX_STATES]; /* xmit connection states */ member
Dvjcompress.h126 struct cstate tstate[MAX_STATES]; /* xmit connection states */ member
/external/python/cpython2/Doc/c-api/
Dinit.rst526 ``PyEval_ReleaseThread(tstate)``. It is not needed before calling
574 .. c:function:: void PyEval_RestoreThread(PyThreadState *tstate)
577 support is enabled) and set the thread state to *tstate*, which must not be
590 .. c:function:: PyThreadState* PyThreadState_Swap(PyThreadState *tstate)
593 *tstate*, which may be *NULL*. The global interpreter lock must be held
724 .. c:function:: void PyThreadState_Clear(PyThreadState *tstate)
730 .. c:function:: void PyThreadState_Delete(PyThreadState *tstate)
763 .. c:function:: void PyEval_AcquireThread(PyThreadState *tstate)
766 *tstate*, which should not be *NULL*. The lock must have been created earlier.
774 .. c:function:: void PyEval_ReleaseThread(PyThreadState *tstate)
[all …]
/external/python/cpython2/Doc/data/
Drefcounts.dat359 PyEval_AcquireThread:PyThreadState*:tstate::
371 PyEval_ReleaseThread:PyThreadState*:tstate::
374 PyEval_RestoreThread:PyThreadState*:tstate::
1344 PyThreadState_Clear:PyThreadState*:tstate::
1347 PyThreadState_Delete:PyThreadState*:tstate::
1357 PyThreadState_Swap:PyThreadState*:tstate::
1753 Py_EndInterpreter:PyThreadState*:tstate::
/external/mksh/src/
Dsh.h1617 struct tstate { struct
2268 void ktwalk(struct tstate *, struct table *);
2269 struct tbl *ktnext(struct tstate *);

12