diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-14 23:08:47 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-15 11:10:53 -0700 |
| commit | 561511e62813840e930ff60e6918ccaea4f00f00 (patch) | |
| tree | f76bb5d3da66998dab48f86a68eae29d80aad14b /src/rt/rust_builtin.cpp | |
| parent | c414b78afed76f63adf4e7538f04b6231f177236 (diff) | |
| download | rust-561511e62813840e930ff60e6918ccaea4f00f00.tar.gz rust-561511e62813840e930ff60e6918ccaea4f00f00.zip | |
core: Channels are just port ids
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index aa5b60f87a9..b7abcdd9c26 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -444,8 +444,8 @@ rust_new_task_in_sched(rust_sched_id id) { } extern "C" CDECL void -rust_task_config_notify(rust_task *target, chan_handle *chan) { - target->config_notify(*chan); +rust_task_config_notify(rust_task *target, rust_port_id *port) { + target->config_notify(*port); } extern "C" rust_task * @@ -503,13 +503,11 @@ get_port_id(rust_port *port) { } extern "C" CDECL uintptr_t -chan_id_send(type_desc *t, rust_task_id target_task_id, - rust_port_id target_port_id, void *sptr) { +rust_port_id_send(type_desc *t, rust_port_id target_port_id, void *sptr) { bool sent = false; rust_task *task = rust_task_thread::get_task(); - LOG(task, comm, "chan_id_send task: 0x%" PRIxPTR - " port: 0x%" PRIxPTR, (uintptr_t) target_task_id, + LOG(task, comm, "rust_port_id*_send port: 0x%" PRIxPTR, (uintptr_t) target_port_id); rust_port *port = task->kernel->get_port_by_id(target_port_id); |
