Go to the documentation of this file.
47 #define SPA_TYPE_INFO_Thread SPA_TYPE_INFO_POINTER_BASE "Thread"
50 #define SPA_TYPE_INTERFACE_ThreadUtils SPA_TYPE_INFO_INTERFACE_BASE "ThreadUtils"
51 #define SPA_VERSION_THREAD_UTILS 0
56 #define SPA_VERSION_THREAD_UTILS_METHODS 0
61 void *(*start)(
void*),
void *arg);
74 const struct spa_dict *
props,
void *(*start_routine)(
void*),
void *arg)
76 struct spa_thread *res = NULL;
79 props, start_routine, arg);
84 struct spa_thread *
thread,
void **retval)
104 struct spa_thread *
thread,
int priority)
114 struct spa_thread *
thread)
#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:208
struct spa_thread * spa_thread_utils_create(struct spa_thread_utils *o, const struct spa_dict *props, void *(*start_routine)(void *), void *arg)
Definition: build-12775836/doc/spa/support/thread.h:73
int spa_thread_utils_join(struct spa_thread_utils *o, struct spa_thread *thread, void **retval)
Definition: build-12775836/doc/spa/support/thread.h:83
int(* join)(void *data, struct spa_thread *thread, void **retval)
stop and join a thread
Definition: build-12775836/doc/spa/support/thread.h:63
user data to add to an object
Definition: filter.c:75
Definition: module-rtkit.c:70
Definition: build-12775836/doc/spa/support/thread.h:52
int(* get_rt_range)(void *data, const struct spa_dict *props, int *min, int *max)
get realtime priority range for threads created with props
Definition: build-12775836/doc/spa/support/thread.h:66
thread utils
Definition: build-12775836/doc/spa/support/thread.h:55
int spa_thread_utils_drop_rt(struct spa_thread_utils *o, struct spa_thread *thread)
Definition: build-12775836/doc/spa/support/thread.h:113
struct spa_interface iface
Definition: build-12775836/doc/spa/support/thread.h:52
int(* acquire_rt)(void *data, struct spa_thread *thread, int priority)
acquire realtime priority
Definition: build-12775836/doc/spa/support/thread.h:68
int spa_thread_utils_get_rt_range(struct spa_thread_utils *o, const struct spa_dict *props, int *min, int *max)
Definition: build-12775836/doc/spa/support/thread.h:93
Definition: utils/dict.h:48
int(* drop_rt)(void *data, struct spa_thread *thread)
drop realtime priority
Definition: build-12775836/doc/spa/support/thread.h:70
uint32_t version
Definition: build-12775836/doc/spa/support/thread.h:57
int spa_thread_utils_acquire_rt(struct spa_thread_utils *o, struct spa_thread *thread, int priority)
Definition: build-12775836/doc/spa/support/thread.h:103