core: Channels are just port ids

This commit is contained in:
Brian Anderson
2012-03-14 23:08:47 -07:00
parent c414b78afe
commit 561511e628
5 changed files with 17 additions and 27 deletions

View File

@@ -475,7 +475,7 @@ rust_task::notify(bool success) {
// FIXME (1078) Do this in rust code
if(notify_enabled) {
rust_port *target_port =
kernel->get_port_by_id(notify_chan.port);
kernel->get_port_by_id(notify_port);
if(target_port) {
task_notification msg;
msg.id = id;
@@ -719,9 +719,9 @@ rust_task::delete_all_stacks() {
}
void
rust_task::config_notify(chan_handle chan) {
rust_task::config_notify(rust_port_id port) {
notify_enabled = true;
notify_chan = chan;
notify_port = port;
}
/*