mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Revert "bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)" (GH-13780)
This reverts commit 6a150bcaeb
.
This commit is contained in:
parent
49a7e34797
commit
e225bebc14
10 changed files with 185 additions and 320 deletions
|
@ -25,7 +25,7 @@ struct pyruntimestate;
|
|||
|
||||
/* ceval state */
|
||||
|
||||
struct _ceval_pending_calls {
|
||||
struct _pending_calls {
|
||||
int finishing;
|
||||
PyThread_type_lock lock;
|
||||
/* Request for running pending calls. */
|
||||
|
@ -36,7 +36,6 @@ struct _ceval_pending_calls {
|
|||
int async_exc;
|
||||
#define NPENDINGCALLS 32
|
||||
struct {
|
||||
unsigned long thread_id;
|
||||
int (*func)(void *);
|
||||
void *arg;
|
||||
} calls[NPENDINGCALLS];
|
||||
|
@ -54,21 +53,15 @@ struct _ceval_runtime_state {
|
|||
int tracing_possible;
|
||||
/* This single variable consolidates all requests to break out of
|
||||
the fast path in the eval loop. */
|
||||
// XXX This can move to _ceval_interpreter_state once all parts
|
||||
// from COMPUTE_EVAL_BREAKER have moved under PyInterpreterState.
|
||||
_Py_atomic_int eval_breaker;
|
||||
/* Request for dropping the GIL */
|
||||
_Py_atomic_int gil_drop_request;
|
||||
struct _pending_calls pending;
|
||||
/* Request for checking signals. */
|
||||
_Py_atomic_int signals_pending;
|
||||
struct _gil_runtime_state gil;
|
||||
};
|
||||
|
||||
struct _ceval_interpreter_state {
|
||||
struct _ceval_pending_calls pending;
|
||||
};
|
||||
|
||||
|
||||
/* interpreter state */
|
||||
|
||||
typedef PyObject* (*_PyFrameEvalFunction)(struct _frame *, int);
|
||||
|
@ -143,7 +136,6 @@ struct _is {
|
|||
|
||||
uint64_t tstate_next_unique_id;
|
||||
|
||||
struct _ceval_interpreter_state ceval;
|
||||
struct _warnings_runtime_state warnings;
|
||||
|
||||
PyObject *audit_hooks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue