[rust-dev] Mutiplexing I/O within a task

Daniel Fagnan dnfagnan at gmail.com
Sun Jul 6 00:13:58 PDT 2014


I'm also interesting in some pointers on the best way to achieve this.

--
Daniel Fagnan
@TheHydroImpulse
http://hydrocodedesign.com
M: (780) 983-4997


On Sat, Jul 5, 2014 at 9:07 AM, Nat Pryce <nat.pryce at gmail.com> wrote:

> I've been trying to write tasks that wait for both I/O and channel
> communication. I've been told that, to maximise communication performance,
> channels do not support selecting of both channels and I/O objects.
>  Therefore a program should signal to a task that is waiting for I/O over
> another I/O object, such as a pipe, not by sending a message over a
> channel.  Fair enough.
>
> What API should I use to wait for multiple I/O objects within a task?  Is
> there a runtime-independent API for this?
>
> And if I write my own I/O abstractions, for example around eventfd on
> Linux, what traits (platform specific traits, I imagine) should I implement
> to make them work with the runtime-independent I/O select API?
>
> Sorry if this is already covered in the documentation.  I've searched but
> not found anything obvious.
>
> Any help much appreciated.
>
> --Nat
>
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140706/a8a2b616/attachment.html>


More information about the Rust-dev mailing list