Ahh that makes sense. Thanks both of you. I had an inkling that it was more
complicated then I thought, but I wasn't sure.

On Sat, Oct 4, 2014 at 6:22 PM, Zaven Muradyan <[email protected]> wrote:

> On 10/04/2014 01:37 PM, Sean McArthur wrote:
>
>> Wouldn't that just make the process burn cpu, instead of being able to
>> allow other threads to work?
>>
> I would think so, yes. From what I can tell, `std::comm` channels do
> blocking by using `std::task::deschedule`, along with some internal
> housekeeping that seems to be trying to avoid the situation whereby a woken
> task tries to grab some data that has already been `recv()`'d by someone
> else (although, I'm not sure how that would ever happen in a SPSC scenario).
>
>
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to