@@ -202,7 +202,7 @@ class TaskScheduler
202202 sid, p, m_opt->lz4 , KM_FILE::KMER);
203203 task = std::make_shared<CountTask<MAX_K, MAX_C, SuperKStorageReader>>(
204204 path, m_config, sk_storage, pinfos, p, iid, m_config._kmerSize ,
205- a_min, m_opt->lz4 , m_hists[iid]-> clone ( ), !m_opt->keep_tmp );
205+ a_min, m_opt->lz4 , get_hist_clone ( m_hists[iid]), !m_opt->keep_tmp );
206206 }
207207 else if (m_opt->kff )
208208 {
@@ -211,7 +211,7 @@ class TaskScheduler
211211 sid, p, m_opt->lz4 , KM_FILE::KFF);
212212 task = std::make_shared<KffCountTask<MAX_K, MAX_C, SuperKStorageReader>>(
213213 path, m_config, sk_storage, pinfos, p, iid,
214- m_config._kmerSize , a_min, m_hists[iid]-> clone ( ), !m_opt->keep_tmp );
214+ m_config._kmerSize , a_min, get_hist_clone ( m_hists[iid]), !m_opt->keep_tmp );
215215 }
216216 }
217217 else
@@ -224,7 +224,7 @@ class TaskScheduler
224224 task = std::make_shared<HashCountTask<MAX_K, MAX_C, SuperKStorageReader>>(
225225 path, m_config, sk_storage, pinfos, p, iid,
226226 m_hw.get_window_size_bits (), m_config._kmerSize , a_min, m_opt->lz4 ,
227- m_hists[iid]-> clone ( ), !m_opt->keep_tmp );
227+ get_hist_clone ( m_hists[iid]), !m_opt->keep_tmp );
228228 }
229229 else
230230 {
@@ -234,7 +234,7 @@ class TaskScheduler
234234 task = std::make_shared<HashVecCountTask<MAX_K, MAX_C, SuperKStorageReader>>(
235235 path, m_config, sk_storage, pinfos, p, iid,
236236 m_hw.get_window_size_bits (), m_config._kmerSize , a_min, m_opt->lz4 ,
237- m_hists[iid]-> clone ( ), !m_opt->keep_tmp );
237+ get_hist_clone ( m_hists[iid]), !m_opt->keep_tmp );
238238 }
239239 }
240240 if (m_is_info) task->set_callback ([this ](){ this ->m_dyn [1 ].tick (); });
@@ -290,7 +290,7 @@ class TaskScheduler
290290 sid, p, this ->m_opt ->lz4 , KM_FILE::KMER);
291291 task = std::make_shared<CountTask<MAX_K, MAX_C, SuperKStorageReader>>(
292292 path, this ->m_config , sk_storage, pinfos, p, iid,
293- this ->m_config ._kmerSize , a_min, m_opt->lz4 , this ->m_hists [iid]-> clone ( ),
293+ this ->m_config ._kmerSize , a_min, m_opt->lz4 , get_hist_clone ( this ->m_hists [iid]),
294294 !this ->m_opt ->keep_tmp );
295295 }
296296 else if (m_opt->kff )
@@ -300,7 +300,7 @@ class TaskScheduler
300300 sid, p, this ->m_opt ->lz4 , KM_FILE::KFF);
301301 task = std::make_shared<KffCountTask<MAX_K, MAX_C, SuperKStorageReader>>(
302302 path, this ->m_config , sk_storage, pinfos, p, iid,
303- this ->m_config ._kmerSize , a_min, this ->m_hists [iid]-> clone ( ), !this ->m_opt ->keep_tmp );
303+ this ->m_config ._kmerSize , a_min, get_hist_clone ( this ->m_hists [iid]), !this ->m_opt ->keep_tmp );
304304 }
305305 }
306306 else
@@ -313,7 +313,7 @@ class TaskScheduler
313313 task = std::make_shared<HashCountTask<MAX_K, MAX_C, SuperKStorageReader>>(
314314 path, m_config, sk_storage, pinfos, p, iid,
315315 m_hw.get_window_size_bits (), m_config._kmerSize , a_min, m_opt->lz4 ,
316- m_hists[iid]-> clone ( ), !this ->m_opt ->keep_tmp );
316+ get_hist_clone ( this -> m_hists [iid]), !this ->m_opt ->keep_tmp );
317317 }
318318 else
319319 {
@@ -323,7 +323,7 @@ class TaskScheduler
323323 task = std::make_shared<HashVecCountTask<MAX_K, MAX_C, SuperKStorageReader>>(
324324 path, this ->m_config , sk_storage, pinfos, p, iid,
325325 this ->m_hw .get_window_size_bits (), this ->m_config ._kmerSize , a_min, false ,
326- this ->m_hists [iid]-> clone ( ), !this ->m_opt ->keep_tmp );
326+ get_hist_clone ( this ->m_hists [iid]), !this ->m_opt ->keep_tmp );
327327 }
328328 }
329329 if (m_is_info)
0 commit comments