aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/util/workqueue.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-03-22 01:33:54 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-03-22 01:33:54 -0400
commit25d3c9078e4970574a73a1003df3b61c666cb60c (patch)
treee0ee965e9d7acd375dc59e2d46b37329c04b98aa /src/components/util/workqueue.rs
parentee88817461ea80f6e883626100d4ccf22f9796a5 (diff)
downloadservo-25d3c9078e4970574a73a1003df3b61c666cb60c.tar.gz
servo-25d3c9078e4970574a73a1003df3b61c666cb60c.zip
Revert "Set a name for WorkQueue tasks (fixes #1830)"
This reverts commit f1394e3ffcd5ce97f307a38237ca05b1808ad71f.
Diffstat (limited to 'src/components/util/workqueue.rs')
-rw-r--r--src/components/util/workqueue.rs6
1 files changed, 3 insertions, 3 deletions
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()
})