mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
*Chan.send() convenience functions
This commit is contained in:
parent
112ec6f938
commit
850fa97c4b
2 changed files with 3 additions and 3 deletions
|
@ -111,7 +111,7 @@ fn run(opts: &Opts) {
|
|||
|
||||
// Send the URL command to the engine task.
|
||||
for opts.urls.each |filename| {
|
||||
engine_chan.chan.send(LoadUrlMsg(make_url(copy *filename, None)))
|
||||
engine_chan.send(LoadUrlMsg(make_url(copy *filename, None)))
|
||||
}
|
||||
|
||||
// Wait for the compositor to shut down.
|
||||
|
@ -120,7 +120,7 @@ fn run(opts: &Opts) {
|
|||
// Shut the engine down.
|
||||
debug!("master: Shut down");
|
||||
let (exit_response_from_engine, exit_chan) = comm::stream();
|
||||
engine_chan.chan.send(ExitMsg(exit_chan));
|
||||
engine_chan.send(ExitMsg(exit_chan));
|
||||
exit_response_from_engine.recv();
|
||||
}
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ pub fn profile<T>(category: ProfilerCategory,
|
|||
let val = callback();
|
||||
let end_time = precise_time_ns();
|
||||
let ms = ((end_time - start_time) as f64 / 1000000f64);
|
||||
profiler_chan.chan.send(TimeMsg(category, ms));
|
||||
profiler_chan.send(TimeMsg(category, ms));
|
||||
return val;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue