public void close() throws IOException, InterruptedException { logger.info("shutting cq provider, destroying cq1"); compChannel.destroyCompChannel(); logger.info("compChannel destroyed"); cq.destroyCQ(); logger.info("cq destroyed"); }
public int destroyCompChannel(IbvCompChannel compChannel) throws IOException { logger.info("destroyCompChannel, compChannel " + compChannel.getFd()); NatIbvCompChannel compChannelImpl = (NatIbvCompChannel) compChannel; if (!compChannelImpl.isOpen()) { throw new IOException("Trying to destroy an already destroyed completion channel."); } compChannelImpl.close(); int ret = nativeDispatcher._destroyCompChannel(compChannelImpl.getObjId()); return ret; }
boolean success = true; if (blocking){ success = compChannel.getCqEvent(cq, timeout); if (success){ this.ackCounter++;
} else if (res == 0){ if (!polling){ compChannel.getCqEvent(cq, -1);