Threading utility interfaces.
More...
|
| static struct spa_thread * | spa_thread_utils_create (struct spa_thread_utils *o, const struct spa_dict *props, void *(*start_routine)(void *), void *arg) |
| | create a new thread that runs start with arg More...
|
| |
| static int | spa_thread_utils_join (struct spa_thread_utils *o, struct spa_thread *thread, void **retval) |
| | stop and join a thread More...
|
| |
| static int | spa_thread_utils_get_rt_range (struct spa_thread_utils *o, const struct spa_dict *props, int *min, int *max) |
| | get realtime priority range for threads created with props More...
|
| |
| static int | spa_thread_utils_acquire_rt (struct spa_thread_utils *o, struct spa_thread *thread, int priority) |
| | acquire realtime priority More...
|
| |
| static int | spa_thread_utils_drop_rt (struct spa_thread_utils *o, struct spa_thread *thread) |
| | drop realtime priority More...
|
| |
Threading utility interfaces.
◆ SPA_TYPE_INFO_Thread
a thread object.
This can be cast to a platform native thread, like pthread on posix systems
◆ SPA_TYPE_INTERFACE_ThreadUtils
◆ SPA_VERSION_THREAD_UTILS
| #define SPA_VERSION_THREAD_UTILS 0 |
◆ SPA_VERSION_THREAD_UTILS_METHODS
| #define SPA_VERSION_THREAD_UTILS_METHODS 0 |
◆ spa_thread_utils_create()
◆ spa_thread_utils_join()
◆ spa_thread_utils_get_rt_range()
| static int spa_thread_utils_get_rt_range |
( |
struct spa_thread_utils * |
o, |
|
|
const struct spa_dict * |
props, |
|
|
int * |
min, |
|
|
int * |
max |
|
) |
| |
|
inlinestatic |
◆ spa_thread_utils_acquire_rt()
◆ spa_thread_utils_drop_rt()