Remove spawn_named_native.

All threads are native now, so this was just an alias for spawn_named.
This commit is contained in:
Ms2ger 2015-01-05 09:20:40 +01:00
parent c4e44b568a
commit e6b2715186
3 changed files with 4 additions and 9 deletions

View file

@ -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);