about summary refs log tree commit diff
path: root/src/rt/rust_task.h
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-02-01 18:50:40 -0800
committerBrian Anderson <banderson@mozilla.com>2013-02-01 21:22:49 -0800
commit4f6516969eb3f488f360a67af4d72f17ab312975 (patch)
treefb97b73456953c2a3a1e5547971c1c9d3ebfadec /src/rt/rust_task.h
parent542bf20414551638886ef6e79e2b7c1a69df97c2 (diff)
downloadrust-4f6516969eb3f488f360a67af4d72f17ab312975.tar.gz
rust-4f6516969eb3f488f360a67af4d72f17ab312975.zip
rt: Remove ports
Diffstat (limited to 'src/rt/rust_task.h')
-rw-r--r--src/rt/rust_task.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h
index 20c9a48f1dd..928c8ffdf21 100644
--- a/src/rt/rust_task.h
+++ b/src/rt/rust_task.h
@@ -116,7 +116,6 @@
 #include "rust_kernel.h"
 #include "boxed_region.h"
 #include "rust_stack.h"
-#include "rust_port_selector.h"
 #include "rust_type.h"
 #include "rust_sched_loop.h"
 
@@ -219,14 +218,6 @@ rust_task : public kernel_owned<rust_task>
     const char *const name;
     int32_t list_index;
 
-    // Rendezvous pointer for receiving data when blocked on a port. If we're
-    // trying to read data and no data is available on any incoming channel,
-    // we block on the port, and yield control to the scheduler. Since, we
-    // were not able to read anything, we remember the location where the
-    // result should go in the rendezvous_ptr, and let the sender write to
-    // that location before waking us up.
-    uintptr_t* rendezvous_ptr;
-
     boxed_region boxed;
     memory_region local_region;
 
@@ -270,8 +261,6 @@ private:
     uintptr_t next_c_sp;
     uintptr_t next_rust_sp;
 
-    rust_port_selector port_selector;
-
     // Called when the atomic refcount reaches zero
     void delete_this();
 
@@ -302,8 +291,6 @@ private:
                                char const *file,
                                size_t line);
 
-    friend class rust_port;
-    friend class rust_port_selector;
     bool block_inner(rust_cond *on, const char* name);
     void wakeup_inner(rust_cond *from);
     bool blocked_on(rust_cond *cond);
@@ -381,8 +368,6 @@ public:
     void call_on_rust_stack(void *args, void *fn_ptr);
     bool have_c_stack() { return c_stack != NULL; }
 
-    rust_port_selector *get_port_selector() { return &port_selector; }
-
     rust_task_state get_state() { return state; }
     rust_cond *get_cond() { return cond; }
     const char *get_cond_name() { return cond_name; }