mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
thread: expose pw_thread_fill_attr()
This commit is contained in:
parent
af48398577
commit
01b5bc443f
3 changed files with 3 additions and 3 deletions
|
|
@ -1321,8 +1321,6 @@ void pw_settings_init(struct pw_context *context);
|
||||||
int pw_settings_expose(struct pw_context *context);
|
int pw_settings_expose(struct pw_context *context);
|
||||||
void pw_settings_clean(struct pw_context *context);
|
void pw_settings_clean(struct pw_context *context);
|
||||||
|
|
||||||
pthread_attr_t *pw_thread_fill_attr(const struct spa_dict *props, pthread_attr_t *attr);
|
|
||||||
|
|
||||||
/** \endcond */
|
/** \endcond */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,9 @@ do { \
|
||||||
} while(false);
|
} while(false);
|
||||||
|
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
pthread_attr_t *pw_thread_fill_attr(const struct spa_dict *props, pthread_attr_t *attr)
|
void *pw_thread_fill_attr(const struct spa_dict *props, void *_attr)
|
||||||
{
|
{
|
||||||
|
pthread_attr_t *attr = _attr;
|
||||||
const char *str;
|
const char *str;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ extern "C" {
|
||||||
SPA_DEPRECATED
|
SPA_DEPRECATED
|
||||||
void pw_thread_utils_set(struct spa_thread_utils *impl);
|
void pw_thread_utils_set(struct spa_thread_utils *impl);
|
||||||
struct spa_thread_utils *pw_thread_utils_get(void);
|
struct spa_thread_utils *pw_thread_utils_get(void);
|
||||||
|
void *pw_thread_fill_attr(const struct spa_dict *props, void *attr);
|
||||||
|
|
||||||
#define pw_thread_utils_create(...) spa_thread_utils_create(pw_thread_utils_get(), ##__VA_ARGS__)
|
#define pw_thread_utils_create(...) spa_thread_utils_create(pw_thread_utils_get(), ##__VA_ARGS__)
|
||||||
#define pw_thread_utils_join(...) spa_thread_utils_join(pw_thread_utils_get(), ##__VA_ARGS__)
|
#define pw_thread_utils_join(...) spa_thread_utils_join(pw_thread_utils_get(), ##__VA_ARGS__)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue