diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c index fa28a52f75efa3..6a539e7cd64524 100644 --- a/Modules/_threadmodule.c +++ b/Modules/_threadmodule.c @@ -85,13 +85,13 @@ typedef struct { static inline int get_thread_handle_state(ThreadHandleObject *handle) { - return _Py_atomic_load_int_relaxed(&handle->state); + return _Py_atomic_load_int(&handle->state); } static inline void set_thread_handle_state(ThreadHandleObject *handle, ThreadHandleState state) { - _Py_atomic_store_int_relaxed(&handle->state, state); + _Py_atomic_store_int(&handle->state, state); } static ThreadHandleObject*