summaryrefslogtreecommitdiff
path: root/src/til_threads.h
blob: b55d7b8e9a07c23c8cc1dfa3ddf4d723f6dd9df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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