mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
add names for all servo spawned tasks
* add servo_util::task::{spawn_named,spawn_with_named} functions * add name param for spawn_listener and spawn_conversation functions this should resolve #1169
This commit is contained in:
parent
99f24fbd40
commit
193b6d2635
19 changed files with 55 additions and 31 deletions
|
@ -18,6 +18,7 @@ use servo_msg::constellation_msg::{ConstellationChan, PipelineId, RendererReadyM
|
|||
use servo_msg::platform::surface::NativeSurfaceAzureMethods;
|
||||
use servo_util::time::{ProfilerChan, profile};
|
||||
use servo_util::time;
|
||||
use servo_util::task::spawn_named;
|
||||
|
||||
use std::comm::{Chan, Port, SharedChan};
|
||||
use extra::arc::Arc;
|
||||
|
@ -145,7 +146,8 @@ impl<C: RenderListener + Send,T:Send+Freeze> RenderTask<C,T> {
|
|||
opts: Opts,
|
||||
profiler_chan: ProfilerChan,
|
||||
shutdown_chan: Chan<()>) {
|
||||
spawn(proc() {
|
||||
spawn_named("RenderTask", proc() {
|
||||
|
||||
{ // Ensures RenderTask and graphics context are destroyed before shutdown msg
|
||||
let native_graphics_context = compositor.get_graphics_metadata().map(
|
||||
|md| NativePaintingGraphicsContext::from_metadata(&md));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue