aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-03-22 02:22:38 -0400
committerbors-servo <release+servo@mozilla.com>2014-03-22 02:22:38 -0400
commit7bd3ba9e1b09b0b69d04d29537627d6ade0aaf41 (patch)
treee0ee965e9d7acd375dc59e2d46b37329c04b98aa /src
parentee88817461ea80f6e883626100d4ccf22f9796a5 (diff)
parent25d3c9078e4970574a73a1003df3b61c666cb60c (diff)
downloadservo-7bd3ba9e1b09b0b69d04d29537627d6ade0aaf41.tar.gz
servo-7bd3ba9e1b09b0b69d04d29537627d6ade0aaf41.zip
auto merge of #1963 : jdm/servo/revert, r=jdm
This reverts commit f1394e3ffcd5ce97f307a38237ca05b1808ad71f.
Diffstat (limited to 'src')
-rw-r--r--src/components/main/layout/layout_task.rs2
-rw-r--r--src/components/util/workqueue.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/components/main/layout/layout_task.rs b/src/components/main/layout/layout_task.rs
index b9050816668..28c305666ae 100644
--- a/src/components/main/layout/layout_task.rs
+++ b/src/components/main/layout/layout_task.rs
@@ -290,7 +290,7 @@ impl LayoutTask {
let local_image_cache = MutexArc::new(LocalImageCache(image_cache_task.clone()));
let screen_size = Size2D(Au(0), Au(0));
let parallel_traversal = if opts.layout_threads != 1 {
- Some(WorkQueue::new("LayoutWorker", opts.layout_threads, ptr::mut_null()))
+ Some(WorkQueue::new(opts.layout_threads, ptr::mut_null()))
} else {
None
};
diff --git a/src/components/util/workqueue.rs b/src/components/util/workqueue.rs
index a1b81d83d61..93ea740c5a0 100644
--- a/src/components/util/workqueue.rs
+++ b/src/components/util/workqueue.rs
@@ -7,7 +7,7 @@
//! Data associated with queues is simply a pair of unsigned integers. It is expected that a
//! higher-level API on top of this could allow safe fork-join parallelism.
-use task;
+use native;
use std::cast;
use std::comm;
use std::mem;
@@ -200,7 +200,7 @@ pub struct WorkQueue<QUD,WUD> {
impl<QUD:Send,WUD:Send> WorkQueue<QUD,WUD> {
/// Creates a new work queue and spawns all the threads associated with
/// it.
- pub fn new(task_name: &str, thread_count: uint, user_data: QUD) -> WorkQueue<QUD,WUD> {
+ pub fn new(thread_count: uint, user_data: QUD) -> WorkQueue<QUD,WUD> {
// Set up data structures.
let (supervisor_port, supervisor_chan) = Chan::new();
let (mut infos, mut threads) = (~[], ~[]);
@@ -235,7 +235,7 @@ impl<QUD:Send,WUD:Send> WorkQueue<QUD,WUD> {
// Spawn threads.
for thread in threads.move_iter() {
- task::spawn_named(task_name.to_owned(), proc() {
+ native::task::spawn(proc() {
let mut thread = thread;
thread.start()
})