8000 gh-128002: use per threads tasks linked list in asyncio by kumaraditya303 · Pull Request #128869 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-128002: use per threads tasks linked list in asyncio #128869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Feb 6, 2025
Merged
Changes from 1 commit
Commits
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
try fix compilation
  • Loading branch information
kumaraditya303 committed Jan 21, 2025
commit 2c1e93e77f8ef395089309005e52e29652333241
2 changes: 1 addition & 1 deletion Modules/_asynciomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3748,8 +3748,8 @@ add_tasks_interp(PyInterpreterState *interp, PyListObject *tasks)
struct llist_node *head = &interp->asyncio_tasks_head;
_PyThreadStateImpl *thead = (_PyThreadStateImpl *)interp->threads.head;

traverse:
struct llist_node *node;
traverse:
llist_for_each_safe(node, head) {
TaskObj *task = llist_data(node, TaskObj, task_node);
// The linked list holds borrowed references to task
Expand Down
Loading
0