mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Some debugging improvements and code style nits across gfx and constellation.
* Propagate the RUST_LOG env var to the child process * Add debug information when a recv() fails in paint thread's select!.
This commit is contained in:
parent
702445a3ec
commit
354dc66029
4 changed files with 17 additions and 6 deletions
|
@ -379,8 +379,7 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static {
|
|||
font_cache_thread: FontCacheThread,
|
||||
time_profiler_chan: time::ProfilerChan,
|
||||
mem_profiler_chan: mem::ProfilerChan) {
|
||||
thread::spawn_named(format!("PaintThread {:?}", id),
|
||||
move || {
|
||||
thread::spawn_named(format!("PaintThread {:?}", id), move || {
|
||||
thread_state::initialize(thread_state::PAINT);
|
||||
PipelineId::install(id);
|
||||
|
||||
|
@ -425,9 +424,9 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static {
|
|||
let chrome_to_paint = &self.chrome_to_paint_port;
|
||||
select! {
|
||||
msg = layout_to_paint.recv() =>
|
||||
Msg::FromLayout(msg.unwrap()),
|
||||
Msg::FromLayout(msg.expect("expected message from layout")),
|
||||
msg = chrome_to_paint.recv() =>
|
||||
Msg::FromChrome(msg.unwrap())
|
||||
Msg::FromChrome(msg.expect("expected message from chrome"))
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue