From bfa9064ba2687eb1d95708f72f41ddd9729a6ba1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 5 Dec 2013 17:56:17 -0800 Subject: Rewrite std::comm * Streams are now ~3x faster than before (fewer allocations and more optimized) * Based on a single-producer single-consumer lock-free queue that doesn't always have to allocate on every send. * Blocking via mutexes/cond vars outside the runtime * Streams work in/out of the runtime seamlessly * Select now works in/out of the runtime seamlessly * Streams will now fail!() on send() if the other end has hung up * try_send() will not fail * PortOne/ChanOne removed * SharedPort removed * MegaPipe removed * Generic select removed (only one kind of port now) * API redesign * try_recv == never block * recv_opt == block, don't fail * iter() == Iterator for Port * removed peek * Type::new * Removed rt::comm --- src/libstd/rt/task.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/libstd/rt/task.rs') diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index 86cc895eb27..2adc32f33fb 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -26,7 +26,6 @@ use option::{Option, Some, None}; use rt::borrowck::BorrowRecord; use rt::borrowck; use rt::context::Context; -use rt::context; use rt::env; use io::Writer; use rt::kill::Death; -- cgit 1.4.1-3-g733a5