Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use sequential consistency for operations on state
  • Loading branch information
mpage committed Feb 14, 2024
commit 1fe27ce40ecedfc35e9132e3cbee054dff14f2f7
4 changes: 2 additions & 2 deletions Modules/_threadmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down