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
Don't need to atomically initialize state in ThreadHandle ctor
  • Loading branch information
mpage committed Feb 13, 2024
commit 7badb2d0c19b08039ec7f089c51d8776e2d7860b
3 changes: 1 addition & 2 deletions Modules/_threadmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ new_thread_handle(thread_module_state* state)
self->handle = 0;
self->thread_is_exiting = event;
self->once = (_PyOnceFlag){0};

set_thread_handle_state(self, THREAD_HANDLE_INVALID);
self->state = THREAD_HANDLE_INVALID;

HEAD_LOCK(&_PyRuntime);
llist_insert_tail(&_PyRuntime.threads.handles, &self->node);
Expand Down