1
Fork 0

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:
Brian Anderson 2011-11-10 16:10:57 -08:00
parent 08d0ff38bc
commit e4f980810b
5 changed files with 23 additions and 70 deletions

View file

@ -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;