◆ mlt_slices_close()
Destroy sliced threading context.
- Deprecated:
- Parameters
-
◆ mlt_slices_count_fifo()
int mlt_slices_count_fifo |
( |
| ) |
|
Get the number of slices for the fifo scheduling policy.
- Returns
- the number of slices
◆ mlt_slices_count_normal()
int mlt_slices_count_normal |
( |
| ) |
|
Get the number of slices for the normal scheduling policy.
- Returns
- the number of slices
◆ mlt_slices_count_rr()
int mlt_slices_count_rr |
( |
| ) |
|
Get the number of slices for the round robin scheduling policy.
- Returns
- the number of slices
◆ mlt_slices_get_global()
Get a global shared sliced threading context.
There are separate contexts for each scheduling policy.
- Parameters
-
policy | the thread scheduling policy needed |
- Returns
- the context pointer
◆ mlt_slices_init()
mlt_slices mlt_slices_init |
( |
int |
threads, |
|
|
int |
policy, |
|
|
int |
priority |
|
) |
| |
Initialize a sliced threading context.
- Deprecated:
- Parameters
-
threads | number of threads to use for job list, 0 for #cpus |
policy | scheduling policy of processing threads, -1 for normal |
priority | priority value that can be used with the scheduling algorithm, -1 for maximum |
- Returns
- the context pointer
◆ mlt_slices_run()
Run sliced execution.
- Deprecated:
- Parameters
-
ctx | context pointer |
jobs | number of jobs to process |
proc | number of jobs to process |
◆ cond_mutex
pthread_mutex_t mlt_slices_s::cond_mutex |
◆ cond_var_job
pthread_cond_t mlt_slices_s::cond_var_job |
◆ cond_var_ready
pthread_cond_t mlt_slices_s::cond_var_ready |
◆ count
◆ f_exit
◆ head
◆ name
const char* mlt_slices_s::name |
◆ readys
◆ ref
◆ tail
◆ threads
The documentation for this struct was generated from the following file: