| 107 | } |
| 108 | |
| 109 | void WriterThread::input(int tid, string* data) { |
| 110 | if (mPwriteMode) { |
| 111 | inputPwrite(tid, data); |
| 112 | return; |
| 113 | } |
| 114 | mBufferLists[tid]->produce(data); |
| 115 | mBufferLength++; |
| 116 | } |
| 117 | |
| 118 | void WriterThread::inputPwrite(int tid, string* data) { |
| 119 | size_t bound = libdeflate_gzip_compress_bound(mCompressors[tid], data->size()); |