mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add the TaskSourceName to CommonScriptMsg::Task
Update QueuedTaskConversion and the TaskQueue to use it
This commit is contained in:
parent
b211e45bb0
commit
e286fdcc53
18 changed files with 134 additions and 71 deletions
|
@ -31,6 +31,7 @@ impl TaskSource for NetworkingTaskSource {
|
|||
ScriptThreadEventCategory::NetworkEvent,
|
||||
Box::new(canceller.wrap_task(task)),
|
||||
Some(self.1),
|
||||
NetworkingTaskSource::NAME,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
@ -46,6 +47,7 @@ impl NetworkingTaskSource {
|
|||
ScriptThreadEventCategory::NetworkEvent,
|
||||
Box::new(task),
|
||||
Some(self.1),
|
||||
NetworkingTaskSource::NAME,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue