mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Remove spawn_named_native.
All threads are native now, so this was just an alias for spawn_named.
This commit is contained in:
parent
c4e44b568a
commit
e6b2715186
3 changed files with 4 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue