*Chan.send() convenience functions

This commit is contained in:
Tim Kuehn 2013-06-14 13:59:39 -07:00
parent 112ec6f938
commit 850fa97c4b
2 changed files with 3 additions and 3 deletions

View file

@ -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();
}

View file

@ -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;
}