Skip to content

Commit bfa9064

Browse files
committed
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<T> for Port<T> * removed peek * Type::new * Removed rt::comm
1 parent 000cda6 commit bfa9064

File tree

9 files changed

+2631
-434
lines changed

9 files changed

+2631
-434
lines changed

src/libstd/comm.rs

-311
This file was deleted.

0 commit comments

Comments
 (0)