summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/jemalloc-5.3.0/test/include/test/thd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluent-bit/lib/jemalloc-5.3.0/test/include/test/thd.h')
-rw-r--r--src/fluent-bit/lib/jemalloc-5.3.0/test/include/test/thd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fluent-bit/lib/jemalloc-5.3.0/test/include/test/thd.h b/src/fluent-bit/lib/jemalloc-5.3.0/test/include/test/thd.h
new file mode 100644
index 000000000..47a51262e
--- /dev/null
+++ b/src/fluent-bit/lib/jemalloc-5.3.0/test/include/test/thd.h
@@ -0,0 +1,9 @@
+/* Abstraction layer for threading in tests. */
+#ifdef _WIN32
+typedef HANDLE thd_t;
+#else
+typedef pthread_t thd_t;
+#endif
+
+void thd_create(thd_t *thd, void *(*proc)(void *), void *arg);
+void thd_join(thd_t thd, void **ret);