From b686b405c6a22b26e9b8082c92ed91513608bea3 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 1 Oct 2021 16:35:08 -0700 Subject: *: librototiller->libtil Largely mechanical rename of librototiller -> libtil, but introducing a til_ prefix to all librototiller (now libtil) functions and types where a rototiller prefix was absent. This is just a step towards a more libized librototiller, and til is just a nicer to type/read prefix than rototiller_. --- src/til_threads.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/til_threads.h (limited to 'src/til_threads.h') 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 -- cgit v1.2.3