mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
|
@ -23,7 +23,7 @@ use script_task::{ScriptTask, ScriptChan, ScriptMsg, TimerSource};
|
|||
use script_task::StackRootTLS;
|
||||
|
||||
use servo_net::resource_task::{ResourceTask, load_whole_resource};
|
||||
use servo_util::task::spawn_named_native;
|
||||
use servo_util::task::spawn_named;
|
||||
use servo_util::task_state;
|
||||
use servo_util::task_state::{SCRIPT, IN_WORKER};
|
||||
|
||||
|
@ -135,8 +135,7 @@ impl DedicatedWorkerGlobalScope {
|
|||
parent_sender: Box<ScriptChan+Send>,
|
||||
own_sender: Sender<(TrustedWorkerAddress, ScriptMsg)>,
|
||||
receiver: Receiver<(TrustedWorkerAddress, ScriptMsg)>) {
|
||||
spawn_named_native(format!("WebWorker for {}", worker_url.serialize()), proc() {
|
||||
|
||||
spawn_named(format!("WebWorker for {}", worker_url.serialize()), proc() {
|
||||
task_state::initialize(SCRIPT | IN_WORKER);
|
||||
|
||||
let roots = RootCollection::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue