thread: expose pw_thread_fill_attr()

This commit is contained in:
Wim Taymans 2023-07-13 12:10:21 +02:00
parent af48398577
commit 01b5bc443f
3 changed files with 3 additions and 3 deletions

View file

@ -1321,8 +1321,6 @@ void pw_settings_init(struct pw_context *context);
int pw_settings_expose(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 */
#ifdef __cplusplus

View file

@ -25,8 +25,9 @@ do { \
} while(false);
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;
int res;

View file

@ -27,6 +27,7 @@ extern "C" {
SPA_DEPRECATED
void pw_thread_utils_set(struct spa_thread_utils *impl);
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_join(...) spa_thread_utils_join(pw_thread_utils_get(), ##__VA_ARGS__)