PipeWire
1.2.5
thread.h
Go to the documentation of this file.
1
/* PipeWire */
2
/* SPDX-FileCopyrightText: Copyright © 2021 Wim Taymans */
3
/* SPDX-License-Identifier: MIT */
4
5
#ifndef PIPEWIRE_THREAD_H
6
#define PIPEWIRE_THREAD_H
7
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
12
#include <
string.h
>
13
#include <errno.h>
14
15
#include <
spa/support/thread.h
>
16
27
SPA_DEPRECATED
28
void
pw_thread_utils_set
(
struct
spa_thread_utils
*impl);
29
struct
spa_thread_utils
*
pw_thread_utils_get
(
void
);
30
void
*
pw_thread_fill_attr
(
const
struct
spa_dict
*props,
void
*attr);
31
32
#define pw_thread_utils_create(...) spa_thread_utils_create(pw_thread_utils_get(), ##__VA_ARGS__)
33
#define pw_thread_utils_join(...) spa_thread_utils_join(pw_thread_utils_get(), ##__VA_ARGS__)
34
#define pw_thread_utils_get_rt_range(...) spa_thread_utils_get_rt_range(pw_thread_utils_get(), ##__VA_ARGS__)
35
#define pw_thread_utils_acquire_rt(...) spa_thread_utils_acquire_rt(pw_thread_utils_get(), ##__VA_ARGS__)
36
#define pw_thread_utils_drop_rt(...) spa_thread_utils_drop_rt(pw_thread_utils_get(), ##__VA_ARGS__)
37
42
#ifdef __cplusplus
43
}
/* extern "C" */
44
#endif
45
46
#endif
/* PIPEWIRE_THREAD_H */
pw_thread_utils_set
void pw_thread_utils_set(struct spa_thread_utils *impl)
Definition:
thread.c:173
string.h
spa/utils/string.h
spa_thread_utils
Definition:
thread.h:45
thread.h
spa/support/thread.h
spa_dict
Definition:
dict.h:39
pw_thread_utils_get
struct spa_thread_utils * pw_thread_utils_get(void)
Definition:
thread.c:179
pw_thread_fill_attr
void * pw_thread_fill_attr(const struct spa_dict *props, void *attr)
Definition:
thread.c:50
SPA_DEPRECATED
#define SPA_DEPRECATED
Definition:
defs.h:301
pipewire
thread.h
Generated by
1.8.20