51#define SPA_TYPE_INFO_Thread SPA_TYPE_INFO_POINTER_BASE "Thread"
54#define SPA_TYPE_INTERFACE_ThreadUtils SPA_TYPE_INFO_INTERFACE_BASE "ThreadUtils"
55#define SPA_VERSION_THREAD_UTILS 0
60#define SPA_VERSION_THREAD_UTILS_METHODS 0
65 void *(*start)(
void*),
void *arg);
67 int (*
join)(
void *object,
struct spa_thread *thread,
void **retval);
82 const struct spa_dict *props,
void *(*start_routine)(
void*),
void *arg)
87 props, start_routine, arg);
106 const struct spa_dict *props,
int *min,
int *max)
138#define SPA_KEY_THREAD_NAME "thread.name"
139#define SPA_KEY_THREAD_STACK_SIZE "thread.stack-size"
#define spa_interface_call_res(iface, method_type, res, method, vers,...)
Invoke method named method in the callbacks on the given interface object.
Definition: hook.h:255
static int spa_thread_utils_acquire_rt(struct spa_thread_utils *o, struct spa_thread *thread, int priority)
acquire realtime priority, a priority of -1 refers to the priority configured in the realtime module
Definition: spa/include/spa/support/thread.h:127
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
Definition: spa/include/spa/support/thread.h:115
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
Definition: spa/include/spa/support/thread.h:91
static int spa_thread_utils_join(struct spa_thread_utils *o, struct spa_thread *thread, void **retval)
stop and join a thread
Definition: spa/include/spa/support/thread.h:103
static int spa_thread_utils_drop_rt(struct spa_thread_utils *o, struct spa_thread *thread)
drop realtime priority
Definition: spa/include/spa/support/thread.h:139
Definition: utils/dict.h:59
thread utils
Definition: spa/include/spa/support/thread.h:68
int(* drop_rt)(void *object, struct spa_thread *thread)
drop realtime priority
Definition: spa/include/spa/support/thread.h:86
uint32_t version
Definition: spa/include/spa/support/thread.h:71
int(* get_rt_range)(void *object, const struct spa_dict *props, int *min, int *max)
get realtime priority range for threads created with props
Definition: spa/include/spa/support/thread.h:80
int(* join)(void *object, struct spa_thread *thread, void **retval)
stop and join a thread
Definition: spa/include/spa/support/thread.h:77
int(* acquire_rt)(void *object, struct spa_thread *thread, int priority)
acquire realtime priority, a priority of -1 refers to the priority configured in the realtime module
Definition: spa/include/spa/support/thread.h:84
Definition: spa/include/spa/support/thread.h:65
struct spa_interface iface
Definition: spa/include/spa/support/thread.h:65