21 #define SPA_API_THREAD SPA_API_IMPL
23 #define SPA_API_THREAD static inline
39#define SPA_TYPE_INFO_Thread SPA_TYPE_INFO_POINTER_BASE "Thread"
42#define SPA_TYPE_INTERFACE_ThreadUtils SPA_TYPE_INFO_INTERFACE_BASE "ThreadUtils"
43#define SPA_VERSION_THREAD_UTILS 0
48#define SPA_VERSION_THREAD_UTILS_METHODS 0
53 void *(*start)(
void*),
void *arg);
70 const struct spa_dict *props,
void *(*start_routine)(
void*),
void *arg)
74 props, start_routine, arg);
90 const struct spa_dict *props,
int *min,
int *max)
116#define SPA_KEY_THREAD_NAME "thread.name"
117#define SPA_KEY_THREAD_STACK_SIZE "thread.stack-size"
118#define SPA_KEY_THREAD_AFFINITY "thread.affinity"
119#define SPA_KEY_THREAD_CREATOR "thread.creator"
#define spa_api_method_r(rtype, def, type, o, method, version,...)
Definition hook.h:291
SPA_API_THREAD int spa_thread_utils_drop_rt(struct spa_thread_utils *o, struct spa_thread *thread)
drop realtime priority
Definition thread.h:121
SPA_API_THREAD 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 thread.h:111
SPA_API_THREAD 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 thread.h:101
SPA_API_THREAD 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 thread.h:81
SPA_API_THREAD int spa_thread_utils_join(struct spa_thread_utils *o, struct spa_thread *thread, void **retval)
stop and join a thread
Definition thread.h:91
#define SPA_API_THREAD
Definition thread.h:30
thread utils
Definition thread.h:58
int(* drop_rt)(void *object, struct spa_thread *thread)
drop realtime priority
Definition thread.h:76
uint32_t version
Definition thread.h:61
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 thread.h:70
int(* join)(void *object, struct spa_thread *thread, void **retval)
stop and join a thread
Definition thread.h:67
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 thread.h:74
struct spa_interface iface
Definition thread.h:55