Lines Matching refs:PyContext
11 static PyContext *ctx_freelist = NULL;
47 static PyContext *
50 static PyContext *
53 static inline PyContext *
57 token_new(PyContext *ctx, PyContextVar *var, PyObject *val);
87 PyContext *ctx = (PyContext *)octx; in PyContext_Copy()
95 PyContext *ctx = context_get(); in PyContext_CopyCurrent()
108 PyContext *ctx = (PyContext *)octx; in PyContext_Enter()
119 ctx->ctx_prev = (PyContext *)ts->context; /* borrow */ in PyContext_Enter()
134 PyContext *ctx = (PyContext *)octx; in PyContext_Exit()
197 PyHamtObject *vars = ((PyContext *)ts->context)->ctx_vars; in PyContextVar_Get()
251 PyContext *ctx = context_get(); in PyContextVar_Set()
295 PyContext *ctx = context_get(); in PyContextVar_Reset()
321 static inline PyContext *
324 PyContext *ctx; in _context_alloc()
328 ctx_freelist = (PyContext *)ctx->ctx_weakreflist; in _context_alloc()
333 ctx = PyObject_GC_New(PyContext, &PyContext_Type); in _context_alloc()
348 static PyContext *
351 PyContext *ctx = _context_alloc(); in context_new_empty()
367 static PyContext *
370 PyContext *ctx = _context_alloc(); in context_new_from_vars()
383 static inline PyContext *
388 PyContext *current_ctx = (PyContext *)ts->context; in context_get()
423 context_tp_clear(PyContext *self) in context_tp_clear()
431 context_tp_traverse(PyContext *self, visitproc visit, void *arg) in context_tp_traverse()
439 context_tp_dealloc(PyContext *self) in context_tp_dealloc()
459 context_tp_iter(PyContext *self) in context_tp_iter()
474 ((PyContext *)v)->ctx_vars, ((PyContext *)w)->ctx_vars); in context_tp_richcompare()
492 context_tp_len(PyContext *self) in context_tp_len()
498 context_tp_subscript(PyContext *self, PyObject *key) in context_tp_subscript()
517 context_tp_contains(PyContext *self, PyObject *key) in context_tp_contains()
540 _contextvars_Context_get_impl(PyContext *self, PyObject *key, in _contextvars_Context_get_impl()
571 _contextvars_Context_items_impl(PyContext *self) in _contextvars_Context_items_impl()
585 _contextvars_Context_keys_impl(PyContext *self) in _contextvars_Context_keys_impl()
599 _contextvars_Context_values_impl(PyContext *self) in _contextvars_Context_values_impl()
613 _contextvars_Context_copy_impl(PyContext *self) in _contextvars_Context_copy_impl()
621 context_run(PyContext *self, PyObject *const *args, in context_run()
676 sizeof(PyContext),
688 .tp_weaklistoffset = offsetof(PyContext, ctx_weakreflist),
702 PyContext *ctx = context_get(); in contextvar_set()
726 PyContext *ctx = context_get(); in contextvar_del()
1185 token_new(PyContext *ctx, PyContextVar *var, PyObject *val) in token_new()
1263 PyContext *ctx = ctx_freelist; in PyContext_ClearFreeList()
1264 ctx_freelist = (PyContext *)ctx->ctx_weakreflist; in PyContext_ClearFreeList()