mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
|
@ -44,6 +44,7 @@ use servo_net::local_image_cache::{ImageResponder, LocalImageCache};
|
|||
use servo_util::geometry::Au;
|
||||
use servo_util::time::{ProfilerChan, profile};
|
||||
use servo_util::time;
|
||||
use servo_util::task::spawn_named;
|
||||
use std::cast::transmute;
|
||||
use std::cast;
|
||||
use std::cell::RefCell;
|
||||
|
@ -210,7 +211,7 @@ impl LayoutTask {
|
|||
opts: Opts,
|
||||
profiler_chan: ProfilerChan,
|
||||
shutdown_chan: Chan<()>) {
|
||||
spawn(proc() {
|
||||
spawn_named("LayoutTask", proc() {
|
||||
{ // Ensures layout task is destroyed before we send shutdown message
|
||||
let mut layout = LayoutTask::new(id,
|
||||
port,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue