mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Timers are scheduled by a dedicated per-constellation thread.
This commit is contained in:
parent
674589c370
commit
553a0dbefd
21 changed files with 786 additions and 334 deletions
|
@ -72,6 +72,7 @@ impl Worker {
|
|||
|
||||
let resource_task = global.resource_task();
|
||||
let constellation_chan = global.constellation_chan();
|
||||
let scheduler_chan = global.scheduler_chan();
|
||||
|
||||
let (sender, receiver) = channel();
|
||||
let worker = Worker::new(global, sender.clone());
|
||||
|
@ -101,6 +102,7 @@ impl Worker {
|
|||
to_devtools_sender: global.devtools_chan(),
|
||||
from_devtools_sender: optional_sender,
|
||||
constellation_chan: constellation_chan,
|
||||
scheduler_chan: scheduler_chan,
|
||||
worker_id: worker_id,
|
||||
};
|
||||
DedicatedWorkerGlobalScope::run_worker_scope(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue