From 0cd8c054a2070a9b91505d5f3a9addfe131352f1 Mon Sep 17 00:00:00 2001 From: Ariel Manzur Date: Sun, 31 Jan 2016 20:22:38 -0300 Subject: thread renaming --- servers/audio/audio_server_sw.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'servers/audio/audio_server_sw.cpp') diff --git a/servers/audio/audio_server_sw.cpp b/servers/audio/audio_server_sw.cpp index d634c348dc..8b5b5e4f46 100644 --- a/servers/audio/audio_server_sw.cpp +++ b/servers/audio/audio_server_sw.cpp @@ -765,6 +765,8 @@ void AudioServerSW::free(RID p_id) { void AudioServerSW::_thread_func(void *self) { + Thread::set_name("AudioServerSW"); + AudioServerSW *as=(AudioServerSW *)self; while (!as->exit_update_thread) { @@ -807,7 +809,6 @@ void AudioServerSW::init() { #ifndef NO_THREADS exit_update_thread=false; thread = Thread::create(_thread_func,this); - thread->set_name("AudioServerSW"); #endif } -- cgit v1.2.3