From 1bc91848e3cee91eccaf2150a74deaf1cd84be13 Mon Sep 17 00:00:00 2001 From: Ariel Manzur Date: Mon, 21 Dec 2015 10:58:51 -0300 Subject: [PATCH] thread --- servers/audio/audio_server_sw.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servers/audio/audio_server_sw.cpp b/servers/audio/audio_server_sw.cpp index b4723fdc258..500886d73ab 100644 --- a/servers/audio/audio_server_sw.cpp +++ b/servers/audio/audio_server_sw.cpp @@ -767,8 +767,6 @@ void AudioServerSW::_thread_func(void *self) { AudioServerSW *as=(AudioServerSW *)self; - as->thread->set_name("AudioServerSW"); - while (!as->exit_update_thread) { as->_update_streams(true); OS::get_singleton()->delay_usec(5000); @@ -809,6 +807,7 @@ void AudioServerSW::init() { #ifndef NO_THREADS exit_update_thread=false; thread = Thread::create(_thread_func,this); + thread->set_name("AudioServerSW"); #endif }