public static void releaseAllPendingReadLock(Pipe pipe, int consumed) { Pipe.releasePendingAsReadLock(pipe, consumed); }
public static void releaseAllPendingReadLock(Pipe pipe, int consumed) { Pipe.releasePendingAsReadLock(pipe, consumed); }
public static void releaseAllPendingReadLock(Pipe pipe, int consumed) { Pipe.releasePendingAsReadLock(pipe, consumed); }
public static void releaseConsumed(Pipe<RawDataSchema> pipe, ChannelReader reader, int startingAvail) { //release the number of bytes we consumed Pipe.releasePendingAsReadLock(pipe, startingAvail-reader.available()); }
public static void releaseConsumed(Pipe<RawDataSchema> pipe, ChannelReader reader, int startingAvail) { //release the number of bytes we consumed Pipe.releasePendingAsReadLock(pipe, startingAvail-reader.available()); }
Pipe.releasePendingAsReadLock(logFile, (int)(startLen-reader.sourceLen));
private void endOfHeaderProcessing(int i, final int memoIdx, final int stateIdx, Pipe<NetPayloadSchema> localInputPipe, DataOutputBlobWriter<NetResponseSchema> writer) { //logger.trace("end of headers"); positionMemoData[stateIdx] = endOfHeaderProcessing(i, stateIdx, writer); //logger.trace("finished reading header now going to state {}",state); if (3==positionMemoData[stateIdx]) { //release all header bytes, we will do each chunk on its own. assert(runningHeaderBytes[i]>0); Pipe.releasePendingAsReadLock(localInputPipe, runningHeaderBytes[i]); runningHeaderBytes[i] = 0; } //only case where state is not 1 so we must call save all others will call when while loops back to top. TrieParserReader.savePositionMemo(trieReader, positionMemoData, memoIdx); //logger.info("payload position {}", writer.position()); //NOTE: payload index position is always zero DataOutputBlobWriter.setIntBackData(writer, writer.position(), 0); }
private static void processBegin( HTTP1xRouterStage< ?, ?, ?, ?> that, final int idx, Pipe<NetPayloadSchema> selectedInput) { assert(hasNoActiveChannel(that.inputChannels[idx])) : "Can not begin a new connection if one is already in progress."; assert(0==Pipe.releasePendingByteCount(selectedInput)); // ServerCoordinator.inServerCount.incrementAndGet(); // ServerCoordinator.start = System.nanoTime(); //logger.info("accumulate begin"); //keep this as the base for our counting of sequence that.sequences[idx] = Pipe.takeInt(selectedInput); Pipe.confirmLowLevelRead(selectedInput, SIZE_OF_BEGIN); //Pipe.releaseReadLock(selectedInput); Pipe.readNextWithoutReleasingReadLock(selectedInput); //do not return, we will go back arround the while again. //starting a new sequence of data, all the old data including this begin must be released. Pipe.releasePendingAsReadLock(selectedInput, 0); }
Pipe.publishWrites(t); Pipe.releasePendingAsReadLock(source, toCopyLength);
totalAvail -= totalConsumed; Pipe.releasePendingAsReadLock(selectedInput, totalConsumed);
Pipe.releasePendingAsReadLock(input, consumed);
Pipe.publishWrites(output); Pipe.releasePendingAsReadLock(p, toCopyLength);
Pipe.releasePendingAsReadLock(selectedInput, 0);
Pipe.releasePendingAsReadLock(localInputPipe, runningHeaderBytes[i]); int consumed = startingLength3 - trieReader.sourceLen; Pipe.releasePendingAsReadLock(localInputPipe, consumed); Pipe.releasePendingAsReadLock(localInputPipe, consumed); TrieParserReader.savePositionMemo(trieReader, positionMemoData, memoIdx); Pipe.releasePendingAsReadLock(localInputPipe, temp3);