mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-109693: Use pyatomic.h for signal module (gh-110480)
This commit is contained in:
parent
bdbe43c7d0
commit
67e8d416cc
3 changed files with 26 additions and 27 deletions
|
|
@ -76,7 +76,7 @@ update_eval_breaker_from_thread(PyInterpreterState *interp, PyThreadState *tstat
|
|||
_Py_set_eval_breaker_bit(interp, _PY_CALLS_TO_DO_BIT, 1);
|
||||
}
|
||||
if (_Py_ThreadCanHandleSignals(interp)) {
|
||||
if (_Py_atomic_load(&_PyRuntime.signals.is_tripped)) {
|
||||
if (_Py_atomic_load_int(&_PyRuntime.signals.is_tripped)) {
|
||||
_Py_set_eval_breaker_bit(interp, _PY_SIGNALS_PENDING_BIT, 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue