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

Method ThreadConfig

src/threadconfig.cpp:4–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "util.h"
3
4ThreadConfig::ThreadConfig(Options* opt, int threadId, bool paired){
5 mOptions = opt;
6 mThreadId = threadId;
7 mWorkingSplit = threadId;
8 mCurrentSplitReads = 0;
9 mPreStats1 = new Stats(mOptions, false);
10 mPostStats1 = new Stats(mOptions, false);
11 if(paired){
12 mPreStats2 = new Stats(mOptions, true);
13 mPostStats2 = new Stats(mOptions, true);
14 }
15 else {
16 mPreStats2 = NULL;
17 mPostStats2 = NULL;
18 }
19 mWriter1 = NULL;
20 mWriter2 = NULL;
21
22 mFilterResult = new FilterResult(opt, paired);
23 mCanBeStopped = false;
24 mLeftInputList = NULL;
25 mRightInputList = NULL;
26}
27
28ThreadConfig::~ThreadConfig() {
29 cleanup();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected