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

Method writeEmptyFilesForSplitting

src/threadconfig.cpp:151–157  ·  view source on GitHub ↗

if a task of writting N files is assigned to this thread, but the input file doesn't have so many reads to input write some empty files so it will not break following pipelines

Source from the content-addressed store, hash-verified

149// if a task of writting N files is assigned to this thread, but the input file doesn't have so many reads to input
150// write some empty files so it will not break following pipelines
151void ThreadConfig::writeEmptyFilesForSplitting() {
152 while(mWorkingSplit + mOptions->thread < mOptions->split.number) {
153 mWorkingSplit += mOptions->thread;
154 initWriterForSplit();
155 mCurrentSplitReads = 0;
156 }
157}
158
159bool ThreadConfig::canBeStopped() {
160 return mCanBeStopped;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected