We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28519c8 commit 78fa021Copy full SHA for 78fa021
src/libcore/comm.rs
@@ -211,6 +211,9 @@ fn recv_<T: send>(p: *rust_port) -> T {
211
}
212
213
fn peek_(p: *rust_port) -> bool {
214
+ // Yield here before we check to see if someone sent us a message
215
+ // FIXME #524, if the compilergenerates yields, we don't need this
216
+ task::yield();
217
rustrt::rust_port_size(p) != 0u as libc::size_t
218
219
0 commit comments