blob: f7eec81653ed2188edce27b9d8664439cb6f2028 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef _THREADS_H
#define _THREADS_H
#include <pthread.h>
typedef struct fb_fragment_t fb_fragment_t;
typedef struct rototiller_frame_t rototiller_frame_t;
typedef struct thread_t thread_t;
typedef struct threads_t threads_t;
threads_t * threads_create();
void threads_destroy(threads_t *threads);
void threads_frame_submit(threads_t *threads, rototiller_frame_t *frame, void (*render_fragment_func)(void *context, fb_fragment_t *fragment), void *context);
void threads_wait_idle(threads_t *threads);
unsigned threads_num_threads(threads_t *threads);
#endif
|