diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-14 17:24:19 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-15 11:10:52 -0700 |
| commit | b278d675a231fdfe825c72e499d59e8a3d07ffaa (patch) | |
| tree | 426a39a89561d56ac72e328aecc64c045a578e18 /src/rt/rust_task.h | |
| parent | 337d860a8777a761267daaad9b561787b10e7c87 (diff) | |
| download | rust-b278d675a231fdfe825c72e499d59e8a3d07ffaa.tar.gz rust-b278d675a231fdfe825c72e499d59e8a3d07ffaa.zip | |
rt: Look up ports through a single port table
Instead of a two-level lookup, just use one big table
Diffstat (limited to 'src/rt/rust_task.h')
| -rw-r--r-- | src/rt/rust_task.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index ebc90d48024..2d12de9f196 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -70,8 +70,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond const char *const name; int32_t list_index; - rust_port_id next_port_id; - // 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 @@ -100,10 +98,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond private: - // Protects port_table - lock_and_signal port_lock; - hash_map<rust_port_id, rust_port *> port_table; - // Protects state, cond, cond_name lock_and_signal state_lock; rust_task_list *state; @@ -201,10 +195,6 @@ public: void *calloc(size_t size, const char *tag); - rust_port_id register_port(rust_port *port); - void release_port(rust_port_id id); - rust_port *get_port_by_id(rust_port_id id); - // Use this function sparingly. Depending on the ref count is generally // not at all safe. intptr_t get_ref_count() const { return ref_count; } |
