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
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to