aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/task.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-01-22 13:58:46 +0100
committerMs2ger <ms2ger@gmail.com>2015-01-22 14:49:26 +0100
commitee4c56bd8ba333ee8e4b21e0678d406a67a79b66 (patch)
tree958d75ab48c3c7d0747526ef8206c1a56d039542 /components/util/task.rs
parent024571dfa38dbe63cb2a591571e2465b5d882686 (diff)
downloadservo-ee4c56bd8ba333ee8e4b21e0678d406a67a79b66.tar.gz
servo-ee4c56bd8ba333ee8e4b21e0678d406a67a79b66.zip
Remove rtinstrument (fixes #4600).
The code has been disabled during the last rust upgrade, and has not found an owner. Since the next rust upgrade will bitrot it even more, it is better to remove it for now. If anyone wishes to restore it, the code remains in version history.
Diffstat (limited to 'components/util/task.rs')
-rw-r--r--components/util/task.rs18
1 files changed, 6 insertions, 12 deletions
diff --git a/components/util/task.rs b/components/util/task.rs
index fbfe13078b3..44c2ff284dc 100644
--- a/components/util/task.rs
+++ b/components/util/task.rs
@@ -6,13 +6,11 @@ use std::borrow::ToOwned;
use std::task;
use std::comm::Sender;
use std::task::TaskBuilder;
-// use rtinstrument;
use task_state;
pub fn spawn_named(name: String, f: proc():Send) {
let builder = task::TaskBuilder::new().named(name);
builder.spawn(proc() {
- // rtinstrument::instrument(f);
f();
});
}
@@ -25,22 +23,18 @@ pub fn spawn_named_with_send_on_failure<T: Send>(name: &'static str,
dest: Sender<T>) {
let future_result = TaskBuilder::new().named(name).try_future(proc() {
task_state::initialize(state);
- // FIXME: Find replacement for this post-runtime removal
- // rtinstrument::instrument(f);
f();
});
let watched_name = name.to_owned();
let watcher_name = format!("{}Watcher", watched_name);
TaskBuilder::new().named(watcher_name).spawn(proc() {
- //rtinstrument::instrument(proc() {
- match future_result.into_inner() {
- Ok(()) => (),
- Err(..) => {
- debug!("{} failed, notifying constellation", name);
- dest.send(msg);
- }
+ match future_result.into_inner() {
+ Ok(()) => (),
+ Err(..) => {
+ debug!("{} failed, notifying constellation", name);
+ dest.send(msg);
}
- //});
+ }
});
}