about summary refs log tree commit diff
path: root/src/test/bench/shootout-binarytrees.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-17 15:19:18 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-17 17:27:44 -0800
commitd8450d69bbb7bb5c288fba01295551b78a5a8c03 (patch)
tree180b2e9d64e822c78f8ad38c3eb7f1501c17862d /src/test/bench/shootout-binarytrees.rs
parentc14cf4dc868a9468dcf0a106a84dcafd859707fc (diff)
parentd0de2b46e9bcca93971ef64d6ecdef872633f246 (diff)
downloadrust-d8450d69bbb7bb5c288fba01295551b78a5a8c03.tar.gz
rust-d8450d69bbb7bb5c288fba01295551b78a5a8c03.zip
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
Diffstat (limited to 'src/test/bench/shootout-binarytrees.rs')
-rw-r--r--src/test/bench/shootout-binarytrees.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/bench/shootout-binarytrees.rs b/src/test/bench/shootout-binarytrees.rs
index 6762760ed56..dc0a2a6459f 100644
--- a/src/test/bench/shootout-binarytrees.rs
+++ b/src/test/bench/shootout-binarytrees.rs
@@ -110,7 +110,7 @@ fn main() {
     let messages = range_step(min_depth, max_depth + 1, 2).map(|depth| {
         use std::num::Int;
         let iterations = 2.pow((max_depth - depth + min_depth) as usize);
-        Thread::scoped(move || inner(depth, iterations))
+        thread::spawn(move || inner(depth, iterations))
     }).collect::<Vec<_>>();
 
     for message in messages {