Skip to content

Commit daae2ea

Browse files
committed
Merge threading pool API (PR #397)
Note the addition to struct BGZF that may have ABI considerations, but we have already chosen to break ABI compatibility for the next HTSlib release, so it is open season. Fixed trailing whitespace.
2 parents 553406d + 7a54ff9 commit daae2ea

27 files changed

+2677
-1203
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ LIBHTS_OBJS = \
157157
synced_bcf_reader.o \
158158
vcf_sweep.o \
159159
tbx.o \
160+
thread_pool.o \
160161
vcf.o \
161162
vcfutils.o \
162163
cram/cram_codecs.o \
@@ -174,7 +175,6 @@ LIBHTS_OBJS = \
174175
cram/rANS_static.o \
175176
cram/sam_header.o \
176177
cram/string_alloc.o \
177-
cram/thread_pool.o \
178178
cram/vlen.o \
179179
cram/zfio.o
180180

@@ -186,10 +186,11 @@ cram_io_h = cram/cram_io.h $(cram_misc_h)
186186
cram_misc_h = cram/misc.h cram/os.h
187187
cram_sam_header_h = cram/sam_header.h cram/string_alloc.h cram/pooled_alloc.h $(htslib_khash_h) $(htslib_kstring_h)
188188
cram_samtools_h = cram/cram_samtools.h $(htslib_sam_h) $(cram_sam_header_h)
189-
cram_structs_h = cram/cram_structs.h cram/thread_pool.h cram/string_alloc.h $(htslib_khash_h)
189+
cram_structs_h = cram/cram_structs.h $(htslib_thread_pool_h) cram/string_alloc.h $(htslib_khash_h)
190190
cram_open_trace_file_h = cram/open_trace_file.h cram/mFILE.h
191191
hfile_internal_h = hfile_internal.h $(htslib_hfile_h)
192192
hts_internal_h = hts_internal.h $(htslib_hts_h)
193+
thread_pool_internal_h = thread_pool_internal.h $(htslib_thread_pool_h)
193194

194195

195196
# To be effective, config.mk needs to appear after most Makefile variables are
@@ -272,7 +273,7 @@ cyghts-$(LIBHTS_SOVERSION).dll: $(LIBHTS_OBJS)
272273
$(CC) -shared $(LDFLAGS) -o $@ $< libhts.dll.a $(LIBS)
273274

274275

275-
bgzf.o bgzf.pico: bgzf.c config.h $(htslib_hts_h) $(htslib_bgzf_h) $(htslib_hfile_h) $(htslib_khash_h)
276+
bgzf.o bgzf.pico: bgzf.c config.h $(htslib_hts_h) $(htslib_bgzf_h) $(htslib_hfile_h) $(htslib_thread_pool_h) cram/pooled_alloc.h $(htslib_khash_h)
276277
errmod.o errmod.pico: errmod.c config.h $(htslib_hts_h) $(htslib_ksort_h)
277278
kstring.o kstring.pico: kstring.c config.h $(htslib_kstring_h)
278279
knetfile.o knetfile.pico: knetfile.c config.h $(htslib_knetfile_h)
@@ -284,7 +285,7 @@ vcf.o vcf.pico: vcf.c config.h $(htslib_vcf_h) $(htslib_bgzf_h) $(htslib_tbx_h)
284285
sam.o sam.pico: sam.c config.h $(htslib_sam_h) $(htslib_bgzf_h) $(cram_h) $(hts_internal_h) $(htslib_hfile_h) $(htslib_khash_h) $(htslib_kseq_h) $(htslib_kstring_h)
285286
tbx.o tbx.pico: tbx.c config.h $(htslib_tbx_h) $(htslib_bgzf_h) $(hts_internal_h) $(htslib_khash_h)
286287
faidx.o faidx.pico: faidx.c config.h $(htslib_bgzf_h) $(htslib_faidx_h) $(htslib_hfile_h) $(htslib_khash_h) $(htslib_kstring_h) $(hts_internal_h)
287-
synced_bcf_reader.o synced_bcf_reader.pico: synced_bcf_reader.c config.h $(htslib_synced_bcf_reader_h) $(htslib_kseq_h) $(htslib_khash_str2int_h) $(htslib_bgzf_h)
288+
synced_bcf_reader.o synced_bcf_reader.pico: synced_bcf_reader.c config.h $(htslib_synced_bcf_reader_h) $(htslib_kseq_h) $(htslib_khash_str2int_h) $(htslib_bgzf_h) $(htslib_thread_pool_h)
288289
vcf_sweep.o vcf_sweep.pico: vcf_sweep.c config.h $(htslib_vcf_sweep_h) $(htslib_bgzf_h)
289290
vcfutils.o vcfutils.pico: vcfutils.c config.h $(htslib_vcfutils_h) $(htslib_kbitset_h)
290291
kfunc.o kfunc.pico: kfunc.c config.h $(htslib_kfunc_h)
@@ -309,7 +310,7 @@ cram/pooled_alloc.o cram/pooled_alloc.pico: cram/pooled_alloc.c config.h cram/po
309310
cram/rANS_static.o cram/rANS_static.pico: cram/rANS_static.c config.h cram/rANS_static.h cram/rANS_byte.h
310311
cram/sam_header.o cram/sam_header.pico: cram/sam_header.c config.h $(cram_sam_header_h) cram/string_alloc.h
311312
cram/string_alloc.o cram/string_alloc.pico: cram/string_alloc.c config.h cram/string_alloc.h
312-
cram/thread_pool.o cram/thread_pool.pico: cram/thread_pool.c config.h cram/thread_pool.h
313+
thread_pool.o thread_pool.pico: thread_pool.c config.h $(thread_pool_internal_h)
313314
cram/vlen.o cram/vlen.pico: cram/vlen.c config.h cram/vlen.h cram/os.h
314315
cram/zfio.o cram/zfio.pico: cram/zfio.c config.h cram/os.h cram/zfio.h
315316

0 commit comments

Comments
 (0)