mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Reorder LayoutTask::exit_now for clarity.
This commit is contained in:
parent
e2385c8c0e
commit
61983323ae
1 changed files with 1 additions and 2 deletions
|
@ -731,8 +731,6 @@ impl LayoutTask {
|
||||||
fn exit_now<'a>(&'a self,
|
fn exit_now<'a>(&'a self,
|
||||||
possibly_locked_rw_data: &mut Option<MutexGuard<'a, LayoutTaskData>>,
|
possibly_locked_rw_data: &mut Option<MutexGuard<'a, LayoutTaskData>>,
|
||||||
exit_type: PipelineExitType) {
|
exit_type: PipelineExitType) {
|
||||||
let (response_chan, response_port) = ipc::channel().unwrap();
|
|
||||||
|
|
||||||
{
|
{
|
||||||
let mut rw_data = self.lock_rw_data(possibly_locked_rw_data);
|
let mut rw_data = self.lock_rw_data(possibly_locked_rw_data);
|
||||||
if let Some(ref mut traversal) = (&mut *rw_data).parallel_traversal {
|
if let Some(ref mut traversal) = (&mut *rw_data).parallel_traversal {
|
||||||
|
@ -741,6 +739,7 @@ impl LayoutTask {
|
||||||
LayoutTask::return_rw_data(possibly_locked_rw_data, rw_data);
|
LayoutTask::return_rw_data(possibly_locked_rw_data, rw_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let (response_chan, response_port) = ipc::channel().unwrap();
|
||||||
self.paint_chan.send(LayoutToPaintMsg::Exit(Some(response_chan), exit_type)).unwrap();
|
self.paint_chan.send(LayoutToPaintMsg::Exit(Some(response_chan), exit_type)).unwrap();
|
||||||
response_port.recv().unwrap()
|
response_port.recv().unwrap()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue