| 4 | #include <unistd.h> |
| 5 | |
| 6 | WriterThread::WriterThread(Options* opt, string filename, bool isSTDOUT){ |
| 7 | mOptions = opt; |
| 8 | |
| 9 | mWriter1 = NULL; |
| 10 | |
| 11 | mInputCompleted = false; |
| 12 | mFilename = filename; |
| 13 | |
| 14 | initWriter(filename, isSTDOUT); |
| 15 | initBufferLists(); |
| 16 | mWorkingBufferList = 0; // 0 ~ mOptions->thread-1 |
| 17 | mBufferLength = 0; |
| 18 | } |
| 19 | |
| 20 | WriterThread::~WriterThread() { |
| 21 | cleanup(); |
nothing calls this directly
no outgoing calls
no test coverage detected