about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBen Blum <bblum@andrew.cmu.edu>2012-07-25 00:53:43 -0400
committerBen Blum <bblum@andrew.cmu.edu>2012-07-25 13:22:43 -0400
commitc68f2d9aab7e573824d7055a6c6f4783a53dc3f8 (patch)
treeb82238e4f030415a8ff1dfe035aa896548ed0090 /src/rt/rust_task.cpp
parentd9e8efca1946b658546d4973250dc4a34f914b94 (diff)
downloadrust-c68f2d9aab7e573824d7055a6c6f4783a53dc3f8.tar.gz
rust-c68f2d9aab7e573824d7055a6c6f4783a53dc3f8.zip
Remove notification channels in runtime (closes #1078)
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index e7a18e90461..ab07f317550 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -15,7 +15,6 @@ rust_task::rust_task(rust_sched_loop *sched_loop, rust_task_state state,
                      const char *name, size_t init_stack_sz) :
     ref_count(1),
     id(0),
-    notify_enabled(false),
     stk(NULL),
     runtime_sp(0),
     sched(sched_loop->sched),
@@ -141,8 +140,6 @@ cleanup_task(cleanup_args *args) {
 
     task->die();
 
-    task->notify(!threw_exception);
-
 #ifdef __WIN32__
     assert(!threw_exception && "No exception-handling yet on windows builds");
 #endif
@@ -454,23 +451,6 @@ rust_task::calloc(size_t size, const char *tag) {
     return local_region.calloc(size, tag);
 }
 
-void
-rust_task::notify(bool success) {
-    // FIXME (#1078) Do this in rust code
-    if(notify_enabled) {
-        rust_port *target_port =
-            kernel->get_port_by_id(notify_port);
-        if(target_port) {
-            task_notification msg;
-            msg.id = id;
-            msg.result = !success ? tr_failure : tr_success;
-
-            target_port->send(&msg);
-            target_port->deref();
-        }
-    }
-}
-
 size_t
 rust_task::get_next_stack_size(size_t min, size_t current, size_t requested) {
     LOG(this, mem, "calculating new stack size for 0x%" PRIxPTR, this);
@@ -636,12 +616,6 @@ rust_task::delete_all_stacks() {
     }
 }
 
-void
-rust_task::config_notify(rust_port_id port) {
-    notify_enabled = true;
-    notify_port = port;
-}
-
 /*
 Returns true if we're currently running on the Rust stack
  */