Skip to content

Make the select! macro work with newrt pipes. #8342

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

Closed
bblum opened this issue Aug 6, 2013 · 2 comments
Closed

Make the select! macro work with newrt pipes. #8342

bblum opened this issue Aug 6, 2013 · 2 comments
Labels
A-concurrency Area: Concurrency A-syntaxext Area: Syntax extensions C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@bblum
Copy link
Contributor

bblum commented Aug 6, 2013

Old pipes used a common RecvPacketBuffered struct that all types of pipes shared in common to enable heterogeneous select. I've made a version that uses traits for new runtime ports, as can be seen in libstd/rt/select.rs. (But a &Trait bug prevents the heterogeneous version from working currently.)

Anyway, I have no idea how the old select! macro translated its input to something that used the select function. But the select2 function I added demonstrates how you could create a list of arbitrary length of heterogeneous selectables, and select on them, so we ought to be able to port the select! macro to it.

related #5160 #6842

nominating feature-complete

@catamorphism
Copy link
Contributor

Just a bug

@alexcrichton
Copy link
Member

Closing for being outdated. std::comm has now been rewritten and the select! macro has different constraints now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-concurrency Area: Concurrency A-syntaxext Area: Syntax extensions C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

3 participants