• Home
  • Raw
  • Download

Lines Matching refs:PyContext

10 static PyContext *ctx_freelist = NULL;
46 static PyContext *
49 static PyContext *
52 static inline PyContext *
56 token_new(PyContext *ctx, PyContextVar *var, PyObject *val);
86 PyContext *ctx = (PyContext *)octx; in PyContext_Copy()
94 PyContext *ctx = context_get(); in PyContext_CopyCurrent()
107 PyContext *ctx = (PyContext *)octx; in PyContext_Enter()
118 ctx->ctx_prev = (PyContext *)ts->context; /* borrow */ in PyContext_Enter()
133 PyContext *ctx = (PyContext *)octx; in PyContext_Exit()
196 PyHamtObject *vars = ((PyContext *)ts->context)->ctx_vars; in PyContextVar_Get()
250 PyContext *ctx = context_get(); in PyContextVar_Set()
294 PyContext *ctx = context_get(); in PyContextVar_Reset()
320 static inline PyContext *
323 PyContext *ctx; in _context_alloc()
327 ctx_freelist = (PyContext *)ctx->ctx_weakreflist; in _context_alloc()
332 ctx = PyObject_GC_New(PyContext, &PyContext_Type); in _context_alloc()
347 static PyContext *
350 PyContext *ctx = _context_alloc(); in context_new_empty()
366 static PyContext *
369 PyContext *ctx = _context_alloc(); in context_new_from_vars()
382 static inline PyContext *
387 PyContext *current_ctx = (PyContext *)ts->context; in context_get()
422 context_tp_clear(PyContext *self) in context_tp_clear()
430 context_tp_traverse(PyContext *self, visitproc visit, void *arg) in context_tp_traverse()
438 context_tp_dealloc(PyContext *self) in context_tp_dealloc()
458 context_tp_iter(PyContext *self) in context_tp_iter()
473 ((PyContext *)v)->ctx_vars, ((PyContext *)w)->ctx_vars); in context_tp_richcompare()
491 context_tp_len(PyContext *self) in context_tp_len()
497 context_tp_subscript(PyContext *self, PyObject *key) in context_tp_subscript()
516 context_tp_contains(PyContext *self, PyObject *key) in context_tp_contains()
534 _contextvars_Context_get_impl(PyContext *self, PyObject *key, in _contextvars_Context_get_impl()
561 _contextvars_Context_items_impl(PyContext *self) in _contextvars_Context_items_impl()
573 _contextvars_Context_keys_impl(PyContext *self) in _contextvars_Context_keys_impl()
585 _contextvars_Context_values_impl(PyContext *self) in _contextvars_Context_values_impl()
597 _contextvars_Context_copy_impl(PyContext *self) in _contextvars_Context_copy_impl()
605 context_run(PyContext *self, PyObject *const *args, in context_run()
660 sizeof(PyContext),
672 .tp_weaklistoffset = offsetof(PyContext, ctx_weakreflist),
686 PyContext *ctx = context_get(); in contextvar_set()
710 PyContext *ctx = context_get(); in contextvar_del()
1148 token_new(PyContext *ctx, PyContextVar *var, PyObject *val) in token_new()
1226 PyContext *ctx = ctx_freelist; in PyContext_ClearFreeList()
1227 ctx_freelist = (PyContext *)ctx->ctx_weakreflist; in PyContext_ClearFreeList()