Results FastqWriterThread(WorkQueue<Results>& queue, const string& fname) { ofstream ccsFastq(fname); Results counts; while (queue.ConsumeWith(WriteFastqRecords, ref(ccsFastq), ref(counts))) ; return counts; }
Results BamWriterThread(WorkQueue<Results>& queue, unique_ptr<BamWriter>&& ccsBam, unique_ptr<PbiBuilder>&& ccsPbi) { Results counts; while (queue.ConsumeWith(WriteBamRecords, ref(*ccsBam), ref(ccsPbi), ref(counts))) ; return counts; }