]> git.donarmstrong.com Git - samtools.git/blobdiff - bgzf.h
use conditional variable
[samtools.git] / bgzf.h
diff --git a/bgzf.h b/bgzf.h
index 2a70bb902771d937432602045842bf7e0cf1711c..9984d8fe8ea9146330335ac1d4ff5ed9db454ad5 100644 (file)
--- a/bgzf.h
+++ b/bgzf.h
@@ -190,6 +190,13 @@ extern "C" {
         */
        int bgzf_read_block(BGZF *fp);
 
+       /**
+        * Enable multi-threading (only effective on writing)
+        *
+        * @param fp          BGZF file handler; must be opened for writing
+        * @param n_threads   #threads used for writing
+        * @param n_sub_blks  #blocks processed by each thread; a value 64-256 is recommended
+        */
        int bgzf_mt(BGZF *fp, int n_threads, int n_sub_blks);
 
 #ifdef __cplusplus