diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-10-01 16:35:08 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-10-01 16:35:08 -0700 |
commit | b686b405c6a22b26e9b8082c92ed91513608bea3 (patch) | |
tree | 0000f671501863a8ee9b536ba869221d0f6710f9 /src/til_threads.h | |
parent | d1da5500261e96efe0ede06fbebb32f0e191f3c1 (diff) |
*: 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_.
Diffstat (limited to 'src/til_threads.h')
-rw-r--r-- | src/til_threads.h | 14 |
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 |