Lines Matching defs:port
21 fFreePortSemaphore = create_sem(0, "request port pool");
49 RequestPortPool::AddPort(RequestPort* port)
51 if (!port)
54 // resize the port array
60 // add the port as used port and let AcquirePort() free it
61 fPorts[fPortCount].port = port;
65 ReleasePort(port);
73 // first check whether the thread does already own a port
83 return info.port;
87 // the thread doesn't own a port yet, find a free one
95 FATAL(("Inconsistent request port pool: We acquired the free port "
102 return info.port;
107 RequestPortPool::ReleasePort(RequestPort* port)
109 if (!port)
112 // find the port
115 if (info.port == port) {
117 // swap with first used port
120 fPorts[fFreePorts].port = port;
125 if (port->InitCheck() != B_OK)
130 WARN(("RequestPortPool::ReleasePort(%p): port not found\n", port));