MCPcopy Create free account
hub / github.com/OpenGene/fastp / getOne

Method getOne

src/readpool.cpp:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64Read* ReadPool::getOne() {
65 for(int t=0; t<mOptions->thread; t++) {
66 if(mBufferLists[t]->canBeConsumed()) {
67 Read* r = mBufferLists[t]->consume();
68 mConsumed++;
69 if((mConsumed & 0xFF) == 0)
70 updateFullStatus();
71 return r;
72 }
73 }
74 return NULL;
75}

Callers 1

readMethod · 0.80

Calls 2

canBeConsumedMethod · 0.80
consumeMethod · 0.80

Tested by

no test coverage detected