diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-05 09:20:40 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-05 09:20:40 +0100 |
commit | e6b2715186b456b2d64fce20b95f2fa720d20300 (patch) | |
tree | ce07cf4b6d71f25c645db60d972993ec29755d11 /components/util | |
parent | c4e44b568a172cdb6486e5a5b8b4a7c59d4d2382 (diff) | |
download | servo-e6b2715186b456b2d64fce20b95f2fa720d20300.tar.gz servo-e6b2715186b456b2d64fce20b95f2fa720d20300.zip |
Remove spawn_named_native.
All threads are native now, so this was just an alias for spawn_named.
Diffstat (limited to 'components/util')
-rw-r--r-- | components/util/task.rs | 4 | ||||
-rw-r--r-- | components/util/workqueue.rs | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/components/util/task.rs b/components/util/task.rs index 2962880aee0..5de066d5823 100644 --- a/components/util/task.rs +++ b/components/util/task.rs @@ -16,10 +16,6 @@ pub fn spawn_named<S: IntoMaybeOwned<'static>>(name: S, f: proc():Send) { }); } -pub fn spawn_named_native<S: IntoMaybeOwned<'static>>(name: S, f: proc():Send) { - spawn_named(name, f) -} - /// Arrange to send a particular message to a channel if the task fails. pub fn spawn_named_with_send_on_failure<T: Send>(name: &'static str, state: task_state::TaskState, diff --git a/components/util/workqueue.rs b/components/util/workqueue.rs index 8a224dd6e84..291ff40ca57 100644 --- a/components/util/workqueue.rs +++ b/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::spawn_named_native; +use task::spawn_named; use task_state; use libc::funcs::posix88::unistd::usleep; @@ -248,7 +248,7 @@ impl<QueueData: Send, WorkData: Send> WorkQueue<QueueData, WorkData> { // Spawn threads. for (i, thread) in threads.into_iter().enumerate() { - spawn_named_native( + spawn_named( format!("{} worker {}/{}", task_name, i+1, thread_count), proc() { task_state::initialize(state | task_state::IN_WORKER); |