void mlt_slices_run_normal(int jobs, mlt_slices_proc proc, void *cookie)
Definition: mlt_slices.c:397
void mlt_slices_run_fifo(int jobs, mlt_slices_proc proc, void *cookie)
Definition: mlt_slices.c:409
int(* mlt_slices_proc)(int id, int idx, int jobs, void *cookie)
Definition: mlt_slices.h:35
void mlt_slices_run_rr(int jobs, mlt_slices_proc proc, void *cookie)
Definition: mlt_slices.c:403
Provides forward definitions of all public types.
Definition: mlt_slices.c:59
int mlt_slices_count_fifo()
Get the number of slices for the fifo scheduling policy.
Definition: mlt_slices.c:388
void mlt_slices_run(mlt_slices ctx, int jobs, mlt_slices_proc proc, void *cookie)
Run sliced execution.
Definition: mlt_slices.c:274
int mlt_slices_count_normal()
Get the number of slices for the normal scheduling policy.
Definition: mlt_slices.c:358
int mlt_slices_count_rr()
Get the number of slices for the round robin scheduling policy.
Definition: mlt_slices.c:373
void mlt_slices_close(mlt_slices ctx)
Destroy sliced threading context.
Definition: mlt_slices.c:227
mlt_slices mlt_slices_init(int threads, int policy, int priority)
Initialize a sliced threading context.
Definition: mlt_slices.c:146
pthread_t threads[MAX_SLICES]
Definition: mlt_slices.c:67