summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorAriel Manzur <punto@godotengine.org>2015-12-18 03:41:44 -0300
committerAriel Manzur <punto@godotengine.org>2015-12-18 03:41:44 -0300
commit5e0f43d051b6a794a8f5f6385335d441e1a038e3 (patch)
treeea1cc75a84b9cec4e4fa12e30475582385a80f8d /servers
parentf25812794d7c18aee35d7e4faff70890a95cd4db (diff)
naming the audio thread from within itself
Diffstat (limited to 'servers')
-rw-r--r--servers/audio/audio_server_sw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/audio/audio_server_sw.cpp b/servers/audio/audio_server_sw.cpp
index d20e2d42e0..3c55b10dac 100644
--- a/servers/audio/audio_server_sw.cpp
+++ b/servers/audio/audio_server_sw.cpp
@@ -763,9 +763,10 @@ void AudioServerSW::free(RID p_id) {
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);
@@ -806,7 +807,6 @@ void AudioServerSW::init() {
#ifndef NO_THREADS
exit_update_thread=false;
thread = Thread::create(_thread_func,this);
- thread->set_name("AudioServerSW");
#endif
}