8000 gh-76785: Clean Up the Channels Module by ericsnowcurrently · Pull Request #110568 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-76785: Clean Up the Channels Module #110568

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
Changes from 1 commit
Commits
File filter

Filter by extension

8000
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
Add TODO comments.
  • Loading branch information
ericsnowcurrently committed Oct 17, 2023
commit 031d7676a41690bcf1118b871050bdab57e04158
2 changes: 2 additions & 0 deletions Modules/_xxinterpchannelsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,7 @@ _channel_close_interpreter(_PyChannelState *chan, int64_t interp, int end)
goto done;
}
chan->open = _channelends_is_open(chan->ends);
// XXX Activate the "closing" mechanism?

res = 0;
done:
Expand Down Expand Up @@ -1947,6 +1948,7 @@ channel_send_wait(_channels *channels, int64_t cid, PyObject *obj,
}

// Pop the next object off the channel. Fail if empty.
// XXX Support a "wait" mutex?
static int
channel_recv(_channels *channels, int64_t id, PyObject **res)
{
Expand Down
0