thread: implement some properties

Make helper method to parse thread properties and add 2 new properties
to control name and stack-size of the thread.
Use properties when creating threads with the default utils.
Use the default thread utils instead of pthread_create so that the
properties are used.
This commit is contained in:
Wim Taymans 2022-04-18 13:02:27 +02:00
parent 5f7421b946
commit 0b96b87331
7 changed files with 93 additions and 46 deletions

View file

@ -1290,6 +1290,8 @@ void pw_settings_clean(struct pw_context *context);
void pw_impl_module_schedule_destroy(struct pw_impl_module *module);
pthread_attr_t *pw_thread_fill_attr(const struct spa_dict *props, pthread_attr_t *attr);
/** \endcond */
#ifdef __cplusplus