@@ -42,7 +42,7 @@ PyAPI_FUNC(int) _PyEval_MakePendingCalls(PyThreadState *);
4242
4343extern void _Py_FinishPendingCalls (PyThreadState * tstate );
4444extern void _PyEval_InitState (PyInterpreterState * );
45- extern void _PyEval_SignalReceived (PyInterpreterState * interp );
45+ extern void _PyEval_SignalReceived (void );
4646
4747// bitwise flags:
4848#define _Py_PENDING_MAINTHREADONLY 1
@@ -55,7 +55,6 @@ PyAPI_FUNC(int) _PyEval_AddPendingCall(
5555 void * arg ,
5656 int flags );
5757
58- extern void _PyEval_SignalAsyncExc (PyInterpreterState * interp );
5958#ifdef HAVE_FORK
6059extern PyStatus _PyEval_ReInitThreads (PyThreadState * tstate );
6160#endif
@@ -200,40 +199,6 @@ int _PyEval_UnpackIterable(PyThreadState *tstate, PyObject *v, int argcnt, int a
200199void _PyEval_FrameClearAndPop (PyThreadState * tstate , _PyInterpreterFrame * frame );
201200
202201
203- #define _PY_GIL_DROP_REQUEST_BIT 0
204- #define _PY_SIGNALS_PENDING_BIT 1
205- #define _PY_CALLS_TO_DO_BIT 2
206- #define _PY_ASYNC_EXCEPTION_BIT 3
207- #define _PY_GC_SCHEDULED_BIT 4
208- #define _PY_EVAL_PLEASE_STOP_BIT 5
209-
210- /* Reserve a few bits for future use */
211- #define _PY_EVAL_EVENTS_BITS 8
212- #define _PY_EVAL_EVENTS_MASK ((1 << _PY_EVAL_EVENTS_BITS)-1)
213-
214- static inline void
215- _Py_set_eval_breaker_bit (PyInterpreterState * interp , uint32_t bit , uint32_t set )
216- {
217- assert (set == 0 || set == 1 );
218- uintptr_t to_set = set << bit ;
219- uintptr_t mask = ((uintptr_t )1 ) << bit ;
220- uintptr_t old = _Py_atomic_load_uintptr (& interp -> ceval .eval_breaker );
221- if ((old & mask ) == to_set ) {
222- return ;
223- }
224- uintptr_t new ;
225- do {
226- new = (old & ~mask ) | to_set ;
227- } while (!_Py_atomic_compare_exchange_uintptr (& interp -> ceval .eval_breaker , & old , new ));
228- }
229-
230- static inline bool
231- _Py_eval_breaker_bit_is_set (PyInterpreterState * interp , int32_t bit )
232- {
233- return _Py_atomic_load_uintptr_relaxed (& interp -> ceval .eval_breaker ) & (((uintptr_t )1 ) << bit );
234- }
235-
236-
237202#ifdef __cplusplus
238203}
239204#endif
0 commit comments