summaryrefslogtreecommitdiff
path: root/src/til_threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/til_threads.h')
-rw-r--r--src/til_threads.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/til_threads.h b/src/til_threads.h
new file mode 100644
index 0000000..b55d7b8
--- /dev/null
+++ b/src/til_threads.h
@@ -0,0 +1,14 @@
+#ifndef _TIL_THREADS_H
+#define _TIL_THREADS_H
+
+typedef struct til_fb_fragment_t til_fb_fragment_t;
+typedef struct til_threads_t til_threads_t;
+
+til_threads_t * til_threads_create();
+void til_threads_destroy(til_threads_t *threads);
+
+void til_threads_frame_submit(til_threads_t *threads, til_fb_fragment_t *fragment, til_fragmenter_t fragmenter, void (*render_fragment_func)(void *context, unsigned ticks, unsigned cpu, til_fb_fragment_t *fragment), void *context, unsigned ticks);
+void til_threads_wait_idle(til_threads_t *threads);
+unsigned til_threads_num_threads(til_threads_t *threads);
+
+#endif
© All Rights Reserved