rollup merge of #22435: aturon/final-stab-thread

Conflicts:
	src/test/bench/rt-messaging-ping-pong.rs
	src/test/bench/rt-parfib.rs
	src/test/bench/task-perf-spawnalot.rs
This commit is contained in:
Alex Crichton
2015-02-17 15:19:18 -08:00
91 changed files with 856 additions and 676 deletions

View File

@@ -124,7 +124,7 @@
//! # #![allow(dead_code)]
//! use std::old_io::{TcpListener, TcpStream};
//! use std::old_io::{Acceptor, Listener};
//! use std::thread::Thread;
//! use std::thread;
//!
//! let listener = TcpListener::bind("127.0.0.1:80");
//!
@@ -140,7 +140,7 @@
//! match stream {
//! Err(e) => { /* connection failed */ }
//! Ok(stream) => {
//! Thread::spawn(move|| {
//! thread::spawn(move|| {
//! // connection succeeded
//! handle_client(stream)
//! });