summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-07-31 02:10:24 -0700
committerbors <bors@rust-lang.org>2013-07-31 02:10:24 -0700
commit8b7e241e02bb9f82d7b931033afde477d03ff4f2 (patch)
tree84f3b2d5a4f8f81f86b7a04ab937d4a0d18a8366 /src/libextra
parent8a737b502067b1896686bd1f9df7a1446296d80b (diff)
parent33df9fc1d04c224a0c7ecb8d91b75feed75b412c (diff)
downloadrust-8b7e241e02bb9f82d7b931033afde477d03ff4f2.tar.gz
rust-8b7e241e02bb9f82d7b931033afde477d03ff4f2.zip
auto merge of #8139 : brson/rust/rm-old-task-apis, r=pcwalton
This removes a bunch of options from the task builder interface that are irrelevant to the new scheduler and were generally unused anyway. It also bumps the stack size of new scheduler tasks so that there's enough room to run rustc and changes the interface to `Thread` to not implicitly join threads on destruction, but instead require an explicit, and mandatory, call to `join`.
Diffstat (limited to 'src/libextra')
-rw-r--r--src/libextra/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/sync.rs b/src/libextra/sync.rs
index 47fd4cccb9f..cd3db1b3a28 100644
--- a/src/libextra/sync.rs
+++ b/src/libextra/sync.rs
@@ -882,7 +882,7 @@ mod tests {
     fn test_sem_runtime_friendly_blocking() {
         // Force the runtime to schedule two threads on the same sched_loop.
         // When one blocks, it should schedule the other one.
-        do task::spawn_sched(task::ManualThreads(1)) {
+        do task::spawn_sched(task::SingleThreaded) {
             let s = ~Semaphore::new(1);
             let s2 = ~s.clone();
             let (p,c) = comm::stream();