From aea506df4e750d7d2ef2f237e77fe6e86f3cd323 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Sun, 6 Sep 2015 17:57:30 -0400 Subject: [PATCH] minor fix in doc --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 6b4ce89..a7824eb 100644 --- a/index.html +++ b/index.html @@ -6328,7 +6328,7 @@ int main() } ``` -
+
!!Synopsis
 
 * Functionality: simple multi-threading models.
@@ -6336,7 +6336,7 @@ int main()
 ** kt_pipeline(): parallelize a repeated multi-step pipeline with each step possibly on different threads.
 * Library source code: [[kthread.c|https://github.com/attractivechaos/klib/blob/master/kthread.c]]
 * Dependencies: [[POSIX thread|http://en.wikipedia.org/wiki/Native_POSIX_Thread_Library]]
-* Example program: [[kthread_test.c|https://github.com/attractivechaos/klib/blob/master/test/kthread_test.c]]
+* Example program: [[kthread_test.c|https://github.com/attractivechaos/klib/blob/master/test/kthread_test.c]] and [[kthread_test2.c|https://github.com/attractivechaos/klib/blob/master/test/kthread_test2.c]]
 * Blog post: [[Parallelize simple for loops|https://attractivechaos.wordpress.com/2013/10/11/parallelizing-simple-for-loops/]]
 
 !!Examples
@@ -6386,6 +6386,7 @@ int main(int argc, char *argv[])
 
 !!!Example 2: reverse lines with kt_pipeline() and kt_for(). This example is only for demonstration purpose. In practice, we don't need this complication.
 ```c
+// to compile: gcc this_prog.c kthread.c -pthread
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-- 
2.47.3