From 2f3cdcd55ba97c6748cf44658ac1446e8b2583c5 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Sat, 12 Nov 2011 16:54:38 -0500 Subject: [PATCH] bugfix: bwa-short MT does not work (by Peter) --- bwtaln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bwtaln.c b/bwtaln.c index 08a6d5c..cb7cd71 100644 --- a/bwtaln.c +++ b/bwtaln.c @@ -188,7 +188,7 @@ void bwa_aln_core(const char *prefix, const char *fn_fa, const gap_opt_t *opt) data = (thread_aux_t*)calloc(opt->n_threads, sizeof(thread_aux_t)); tid = (pthread_t*)calloc(opt->n_threads, sizeof(pthread_t)); for (j = 0; j < opt->n_threads; ++j) { - data[j].tid = j; data[j].bwt[0] = bwt[0]; data[j].bwt[1] = bwt[1]; + data[j].tid = j; data[j].bwt = bwt; data[j].n_seqs = n_seqs; data[j].seqs = seqs; data[j].opt = opt; pthread_create(&tid[j], &attr, worker, data + j); }