pycore_pystate.h File Reference

Macros

#define PyThreadState_GET()
 
#define _Py_EnsureTstateNotNULL(tstate)
 

Functions

static int _Py_IsMainThread (void)
 
static int _Py_IsMainInterpreter (PyThreadState *tstate)
 
static int _Py_ThreadCanHandleSignals (PyInterpreterState *interp)
 
static int _Py_ThreadCanHandlePendingCalls (void)
 
static PyThreadState_PyRuntimeState_GetThreadState (_PyRuntimeState *runtime)
 
static PyThreadState_PyThreadState_GET (void)
 
 PyAPI_FUNC (void) _Py_NO_RETURN _Py_FatalError_TstateNULL(const char *func)
 
static void _Py_EnsureFuncTstateNotNULL (const char *func, PyThreadState *tstate)
 
static PyInterpreterState_PyInterpreterState_GET (void)
 
 PyAPI_FUNC (PyThreadState *) _PyThreadState_Swap(struct _gilstate_runtime_state *gilstate
 
 PyAPI_FUNC (PyStatus) _PyInterpreterState_Enable(_PyRuntimeState *runtime)
 
 PyAPI_FUNC (int) _PyState_AddModule(PyThreadState *tstate
 

Variables

PyThreadStatetstate
 
PyThreadStatenewts
 
PyObjectmodule
 
PyObject struct PyModuleDefdef
 

Macro Definition Documentation

◆ PyThreadState_GET

#define PyThreadState_GET ( )

◆ _Py_EnsureTstateNotNULL

#define _Py_EnsureTstateNotNULL (   tstate)

Function Documentation

◆ _Py_IsMainThread()

static int _Py_IsMainThread ( void  )
static

◆ _Py_IsMainInterpreter()

static int _Py_IsMainInterpreter ( PyThreadState tstate)
static

◆ _Py_ThreadCanHandleSignals()

static int _Py_ThreadCanHandleSignals ( PyInterpreterState interp)
static

◆ _Py_ThreadCanHandlePendingCalls()

static int _Py_ThreadCanHandlePendingCalls ( void  )
static

◆ _PyRuntimeState_GetThreadState()

static PyThreadState* _PyRuntimeState_GetThreadState ( _PyRuntimeState runtime)
static

◆ _PyThreadState_GET()

static PyThreadState* _PyThreadState_GET ( void  )
static

◆ PyAPI_FUNC() [1/4]

PyAPI_FUNC ( void  ) const

◆ _Py_EnsureFuncTstateNotNULL()

static void _Py_EnsureFuncTstateNotNULL ( const char *  func,
PyThreadState tstate 
)
static

◆ _PyInterpreterState_GET()

static PyInterpreterState* _PyInterpreterState_GET ( void  )
static

◆ PyAPI_FUNC() [2/4]

PyAPI_FUNC ( PyThreadState )

◆ PyAPI_FUNC() [3/4]

PyAPI_FUNC ( PyStatus  )

◆ PyAPI_FUNC() [4/4]

PyAPI_FUNC ( int  )

Variable Documentation

◆ tstate

PyThreadState* tstate

◆ newts

PyThreadState* newts

◆ module

PyObject* module

◆ def

PyObject struct PyModuleDef* def