mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove the unused native argument from spawn_named_with_send_on_failure.
This commit is contained in:
parent
76b0e2d3c7
commit
c4e44b568a
4 changed files with 4 additions and 5 deletions
|
@ -224,7 +224,7 @@ impl<C> PaintTask<C> where C: PaintListener + Send {
|
||||||
|
|
||||||
debug!("paint_task: shutdown_chan send");
|
debug!("paint_task: shutdown_chan send");
|
||||||
shutdown_chan.send(());
|
shutdown_chan.send(());
|
||||||
}, ConstellationMsg::Failure(failure_msg), c, true);
|
}, ConstellationMsg::Failure(failure_msg), c);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn start(&mut self) {
|
fn start(&mut self) {
|
||||||
|
|
|
@ -202,7 +202,7 @@ impl LayoutTaskFactory for LayoutTask {
|
||||||
layout.start();
|
layout.start();
|
||||||
}
|
}
|
||||||
shutdown_chan.send(());
|
shutdown_chan.send(());
|
||||||
}, ConstellationMsg::Failure(failure_msg), con_chan, false);
|
}, ConstellationMsg::Failure(failure_msg), con_chan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -314,7 +314,7 @@ impl ScriptTaskFactory for ScriptTask {
|
||||||
|
|
||||||
// This must always be the very last operation performed before the task completes
|
// This must always be the very last operation performed before the task completes
|
||||||
failsafe.neuter();
|
failsafe.neuter();
|
||||||
}, ConstellationMsg::Failure(failure_msg), const_chan, false);
|
}, ConstellationMsg::Failure(failure_msg), const_chan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,7 @@ pub fn spawn_named_with_send_on_failure<T: Send>(name: &'static str,
|
||||||
state: task_state::TaskState,
|
state: task_state::TaskState,
|
||||||
f: proc(): Send,
|
f: proc(): Send,
|
||||||
msg: T,
|
msg: T,
|
||||||
dest: Sender<T>,
|
dest: Sender<T>) {
|
||||||
_native: bool) {
|
|
||||||
let future_result = TaskBuilder::new().named(name).try_future(proc() {
|
let future_result = TaskBuilder::new().named(name).try_future(proc() {
|
||||||
task_state::initialize(state);
|
task_state::initialize(state);
|
||||||
rtinstrument::instrument(f);
|
rtinstrument::instrument(f);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue