]> git.kaiwu.me - klib.git/commitdiff
added a simple header for kthread
authorHeng Li <lh3@me.com>
Sun, 31 Jul 2016 14:53:24 +0000 (10:53 -0400)
committerHeng Li <lh3@me.com>
Sun, 31 Jul 2016 14:53:24 +0000 (10:53 -0400)
kthread.h [new file with mode: 0644]

diff --git a/kthread.h b/kthread.h
new file mode 100644 (file)
index 0000000..c3cd165
--- /dev/null
+++ b/kthread.h
@@ -0,0 +1,15 @@
+#ifndef KTHREAD_H
+#define KTHREAD_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void kt_for(int n_threads, void (*func)(void*,long,int), void *data, long n);
+void kt_pipeline(int n_threads, void *(*func)(void*, int, void*), void *shared_data, int n_steps);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif