diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-11-10 15:59:31 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-11-10 15:59:31 -0800 |
| commit | 08d0ff38bc6efe2915b877dfec443a3d7853831b (patch) | |
| tree | 8e494a49ff43013c07a403abcd8dfae4a7b78dbe /src/rt/rust_port.cpp | |
| parent | 0dc83879958ed008b4be9decf2efaa2be6c7eea3 (diff) | |
| download | rust-08d0ff38bc6efe2915b877dfec443a3d7853831b.tar.gz rust-08d0ff38bc6efe2915b877dfec443a3d7853831b.zip | |
rt: Remove new_chan. Not needed
Diffstat (limited to 'src/rt/rust_port.cpp')
| -rw-r--r-- | src/rt/rust_port.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_port.cpp b/src/rt/rust_port.cpp index afa4cd738d6..6d83fb2faa9 100644 --- a/src/rt/rust_port.cpp +++ b/src/rt/rust_port.cpp @@ -1,8 +1,7 @@ #include "rust_internal.h" #include "rust_port.h" +#include "rust_chan.h" -extern "C" CDECL rust_chan* -new_chan(rust_port *port); rust_port::rust_port(rust_task *task, size_t unit_sz) : ref_count(1), kernel(task->kernel), task(task), @@ -13,7 +12,8 @@ rust_port::rust_port(rust_task *task, size_t unit_sz) PRIxPTR, (uintptr_t)task, unit_sz, (uintptr_t)this); id = task->register_port(this); - remote_chan = new_chan(this); + remote_chan = new (task->kernel, "rust_chan") + rust_chan(task->kernel, this, unit_sz); } rust_port::~rust_port() { |
