PipeWire: spa/support/thread.h File Reference

PipeWire 1.2.2

Loading...
Searching...
No Matches
Data Structures | Macros | Functions
thread.h File Reference
SPA » Support » Thread

`spa/support/thread.h` More...

Go to the source code of this file.

## Data Structures
struct | spa_thread_utils
struct | spa_thread_utils_methods
| thread utils More...

## Macros
#define | SPA_TYPE_INFO_Thread SPA_TYPE_INFO_POINTER_BASE "Thread"
| a thread object.
#define | SPA_TYPE_INTERFACE_ThreadUtils SPA_TYPE_INFO_INTERFACE_BASE "ThreadUtils"
#define | SPA_VERSION_THREAD_UTILS 0
#define | SPA_VERSION_THREAD_UTILS_METHODS 0
#define | SPA_KEY_THREAD_NAME "thread.name" /* the thread name */
#define | SPA_KEY_THREAD_STACK_SIZE "thread.stack-size" /* the stack size of the thread */
#define | SPA_KEY_THREAD_AFFINITY "thread.affinity" /* array of CPUs for this thread */
#define | SPA_KEY_THREAD_CREATOR "thread.creator" /* platform specific thread creator function */

## Functions
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
static int | spa_thread_utils_join (struct spa_thread_utils *o, struct spa_thread *thread, void **retval)
| stop and join a thread
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
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
static int | spa_thread_utils_drop_rt (struct spa_thread_utils *o, struct spa_thread *thread)
| drop realtime priority

## Detailed Description

`spa/support/thread.h`