thread-loop: set thread name

This commit is contained in:
Wim Taymans 2018-06-05 20:11:50 +02:00
parent eb8b1fd421
commit b029000610

View file

@ -156,6 +156,7 @@ static void *do_loop(void *user_data)
pthread_mutex_lock(&this->lock);
pw_log_debug("thread-loop %p: enter thread", this);
pthread_setname_np(this->thread, this->name ? this->name : "pipewire-thread");
pw_loop_enter(this->loop);
while (this->running) {