rt: Simplify channel-port association
It turns out that there's only ever a single channel per port these days, and it always has the same lifetime as the port, so we don't need a list or a complex association protocol.
This commit is contained in:
parent
08d0ff38bc
commit
e4f980810b
5 changed files with 23 additions and 70 deletions
|
@ -538,9 +538,8 @@ port_recv(uintptr_t *dptr, rust_port *port) {
|
|||
scoped_lock with(port->lock);
|
||||
|
||||
LOG(task, comm, "port: 0x%" PRIxPTR ", dptr: 0x%" PRIxPTR
|
||||
", size: 0x%" PRIxPTR ", chan_no: %d",
|
||||
(uintptr_t) port, (uintptr_t) dptr, port->unit_sz,
|
||||
port->chans.length());
|
||||
", size: 0x%" PRIxPTR,
|
||||
(uintptr_t) port, (uintptr_t) dptr, port->unit_sz);
|
||||
|
||||
if (port->receive(dptr)) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue