Home
last modified time | relevance | path

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

12

/external/python/cpython2/Python/
Dpystate.c49 PyThreadState *_PyThreadState_Current = NULL;
53 static void _PyGILState_NoteThreadState(PyThreadState* tstate);
101 PyThreadState *p; in PyInterpreterState_Clear()
119 PyThreadState *p; in zapthreads()
151 threadstate_getframe(PyThreadState *self) in threadstate_getframe()
156 static PyThreadState *
159 PyThreadState *tstate = (PyThreadState *)malloc(sizeof(PyThreadState)); in new_threadstate()
210 PyThreadState *
216 PyThreadState *
223 _PyThreadState_Init(PyThreadState *tstate) in _PyThreadState_Init()
[all …]
Dsysmodule.c52 PyThreadState *tstate = PyThreadState_GET(); in PySys_GetObject()
74 PyThreadState *tstate = PyThreadState_GET(); in PySys_SetObject()
152 PyThreadState *tstate; in sys_exc_info()
172 PyThreadState *tstate; in sys_exc_clear()
304 call_trampoline(PyThreadState *tstate, PyObject* callback, in call_trampoline()
339 PyThreadState *tstate = frame->f_tstate; in profile_trampoline()
357 PyThreadState *tstate = frame->f_tstate; in trace_trampoline()
408 PyThreadState *tstate = PyThreadState_GET(); in sys_gettrace()
447 PyThreadState *tstate = PyThreadState_GET(); in sys_getprofile()
495 PyThreadState *tstate = PyThreadState_Get(); in sys_settscdump()
[all …]
Dceval.c86 PyThreadState *tstate = PyThreadState_Get(); in dump_tsc()
146 static void set_exc_info(PyThreadState *, PyObject *, PyObject *, PyObject *);
147 static void reset_exc_info(PyThreadState *);
271 PyEval_AcquireThread(PyThreadState *tstate) in PyEval_AcquireThread()
284 PyEval_ReleaseThread(PyThreadState *tstate) in PyEval_ReleaseThread()
302 PyThreadState *tstate; in PyEval_ReInitThreads()
338 PyThreadState *
341 PyThreadState *tstate = PyThreadState_Swap(NULL); in PyEval_SaveThread()
352 PyEval_RestoreThread(PyThreadState *tstate) in PyEval_RestoreThread()
620 PyThreadState *tstate = PyThreadState_GET(); in _Py_CheckRecursiveCall()
[all …]
Derrors.c27 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Restore()
78 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Occurred()
151 PyThreadState *tstate = NULL; in PyErr_NormalizeException()
246 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Fetch()
Dpythonrun.c72 extern void _PyGILState_Init(PyInterpreterState *, PyThreadState *);
158 PyThreadState *tstate; in Py_InitializeEx()
407 PyThreadState *tstate; in Py_Finalize()
575 PyThreadState *
579 PyThreadState *tstate, *save_tstate; in Py_NewInterpreter()
652 Py_EndInterpreter(PyThreadState *tstate) in Py_EndInterpreter()
1718 PyThreadState *tstate = PyThreadState_GET(); in wait_for_thread_shutdown()
Dtraceback.c108 PyThreadState *tstate = PyThreadState_GET(); in PyTraceBack_Here()
/external/python/cpython2/Include/
Dpystate.h103 } PyThreadState; typedef
110 PyAPI_FUNC(PyThreadState *) PyThreadState_New(PyInterpreterState *);
111 PyAPI_FUNC(PyThreadState *) _PyThreadState_Prealloc(PyInterpreterState *);
112 PyAPI_FUNC(void) _PyThreadState_Init(PyThreadState *);
113 PyAPI_FUNC(void) PyThreadState_Clear(PyThreadState *);
114 PyAPI_FUNC(void) PyThreadState_Delete(PyThreadState *);
119 PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void);
120 PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *);
127 PyAPI_DATA(PyThreadState *) _PyThreadState_Current;
178 PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void);
[all …]
Dceval.h117 PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void);
118 PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *);
126 PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
127 PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
131 PyThreadState *_save; \
Dframeobject.h39 PyThreadState *f_tstate;
61 PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
Dpythonrun.h32 PyAPI_FUNC(PyThreadState *) Py_NewInterpreter(void);
33 PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *);
154 PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
Dobject.h1025 PyThreadState *_tstate = PyThreadState_GET(); \
/external/python/cpython2/Mac/Modules/
DautoGIL.c21 PyThreadState **p_tstate = (PyThreadState **)info; in autoGILCallback()
56 PyThreadState **p_tstate; /* for use in the info field */ in autoGIL_installAutoGIL()
76 p_tstate = PyMem_Malloc(sizeof(PyThreadState *)); in autoGIL_installAutoGIL()
/external/python/cpython2/Demo/pysvr/
Dpysvr.c54 static PyThreadState *gtstate;
215 static PyThreadState *the_tstate;
278 PyThreadState *tstate; in run_interpreter()
/external/python/cpython2/Doc/c-api/
Dinit.rst367 single: PyThreadState
368 single: PyThreadState
371 inside a data structure called :c:type:`PyThreadState`. There's also one
372 global variable pointing to the current :c:type:`PyThreadState`: it can
404 PyThreadState *_save;
508 .. c:type:: PyThreadState
565 .. c:function:: PyThreadState* PyEval_SaveThread()
574 .. c:function:: void PyEval_RestoreThread(PyThreadState *tstate)
583 .. c:function:: PyThreadState* PyThreadState_Get()
590 .. c:function:: PyThreadState* PyThreadState_Swap(PyThreadState *tstate)
[all …]
/external/python/cpython2/Doc/data/
Drefcounts.dat359 PyEval_AcquireThread:PyThreadState*:tstate::
371 PyEval_ReleaseThread:PyThreadState*:tstate::
374 PyEval_RestoreThread:PyThreadState*:tstate::
376 PyEval_SaveThread:PyThreadState*:::
1344 PyThreadState_Clear:PyThreadState*:tstate::
1347 PyThreadState_Delete:PyThreadState*:tstate::
1349 PyThreadState_Get:PyThreadState*:::
1353 PyThreadState_New:PyThreadState*:::
1356 PyThreadState_Swap:PyThreadState*:::
1357 PyThreadState_Swap:PyThreadState*:tstate::
[all …]
/external/python/cpython2/Modules/_multiprocessing/
Dpipe_connection.c93 conn_poll(ConnectionObject *conn, double timeout, PyThreadState *_save) in conn_poll()
Dsocket_connection.c188 conn_poll(ConnectionObject *conn, double timeout, PyThreadState *_save) in conn_poll()
Dsemaphore.c215 sem_timedwait_save(sem_t *sem, struct timespec *deadline, PyThreadState *_save) in sem_timedwait_save()
/external/python/cpython2/Parser/
Dmyreadline.c23 PyThreadState* _PyOS_ReadlineTState;
/external/python/cpython2/Modules/
Dthreadmodule.c398 PyThreadState *tstate; in local_clear()
605 PyThreadState *tstate;
612 PyThreadState *tstate; in t_bootstrap()
D_tkinter.c203 typedef PyThreadState *ThreadSpecificData;
204 #define tcl_tstate (*(PyThreadState**)Tcl_GetThreadData(&state_key, sizeof(PyThreadState*)))
206 static PyThreadState *tcl_tstate = NULL;
210 { PyThreadState *tstate = PyThreadState_Get(); Py_BEGIN_ALLOW_THREADS \
223 { PyThreadState *tstate = tcl_tstate; tcl_tstate = NULL; \
227 { PyThreadState *tstate = PyEval_SaveThread(); \
2998 PyThreadState *tstate = PyThreadState_Get(); in Tkapp_MainLoop()
3527 static PyThreadState *event_tstate = NULL;
Dnismodule.c101 PyThreadState *state;
Dpyexpat.c273 trace_frame(PyThreadState *tstate, PyFrameObject *f, int code, PyObject *val) in trace_frame()
300 trace_frame_exc(PyThreadState *tstate, PyFrameObject *f) in trace_frame_exc()
339 PyThreadState *tstate = PyThreadState_GET(); in call_with_frame()
/external/python/cpython2/Objects/
Dgenobject.c47 PyThreadState *tstate = PyThreadState_GET(); in gen_send_ex()
Dframeobject.c622 PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals, in PyFrame_New()

12