diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-14 22:23:16 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-16 11:12:22 -0800 |
| commit | b2cfb7ef8262ebe47514f016f59054ebcfe15d61 (patch) | |
| tree | 871bc0980b26b11d700761cad9a8ac245f5fcedc /src/rt/rust_task.h | |
| parent | e62ddf48988087d19934e1fdc6abb6de5f7a6a02 (diff) | |
| download | rust-b2cfb7ef8262ebe47514f016f59054ebcfe15d61.tar.gz rust-b2cfb7ef8262ebe47514f016f59054ebcfe15d61.zip | |
rt: Add rust_port_select function
Diffstat (limited to 'src/rt/rust_task.h')
| -rw-r--r-- | src/rt/rust_task.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 7594e677bb0..fe1b94d6ea5 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -16,6 +16,7 @@ #include "rust_obstack.h" #include "boxed_region.h" #include "rust_stack.h" +#include "rust_port_selector.h" // Corresponds to the rust chan (currently _chan) type. struct chan_handle { @@ -116,6 +117,8 @@ 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(); @@ -206,6 +209,8 @@ public: void call_on_c_stack(void *args, void *fn_ptr); 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; } }; // This stuff is on the stack-switching fast path |
