Rfcs: Add a mpmc channel

Created on 14 Feb 2015  ·  10Comments  ·  Source: rust-lang/rfcs

Issue by mahkoh
_Friday Dec 12, 2014 at 20:26 GMT_

_For earlier discussion, see https://github.com/rust-lang/rust/issues/19783_

_This issue was labelled with: A-libs, A-threads in the Rust repository_


A-community-library T-libs

Most helpful comment

FWIW, a spmc channel would also be incredibly useful, and could probably be optimized in ways a mpmc can not.

All 10 comments

FWIW, a spmc channel would also be incredibly useful, and could probably be optimized in ways a mpmc can not.

@jonhoo I started bulding a spmc lib for rust, though it needs optimizations, and I should probably dump the linked list idea.. oyashio/spmc lib

Any updates on this? :-)

https://github.com/jonhoo/bus could probably be adapted pretty easily to be spmc instead of sp-broadcast. Will probably simplify the code a fair amount in fact.

I believe crossbeam's SegQueue is a MPMC channel.
EDIT: SegQueue is non-blocking, but MsQueue looks more like a channel.

Any update on getting this into Rust core?

Would definitely be a useful feature. Is it to be integrated to rust 's sync library ?

I believe crossbeam-channel has become the community preferred MPMC channel this year.

@WiSaGaN thanks for the update. Closing this therefore.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steveklabnik picture steveklabnik  ·  4Comments

mqudsi picture mqudsi  ·  3Comments

yongqli picture yongqli  ·  3Comments

clarfonthey picture clarfonthey  ·  3Comments

3442853561 picture 3442853561  ·  3Comments