too early to rename thread

This commit is contained in:
Ariel Manzur 2015-12-21 09:38:44 -03:00
parent 0576e1e28f
commit d4ed043968

View file

@ -769,7 +769,7 @@ void AudioServerSW::_thread_func(void *self) {
AudioServerSW *as=(AudioServerSW *)self; AudioServerSW *as=(AudioServerSW *)self;
as->thread->set_name("AudioServerSW"); //as->thread->set_name("AudioServerSW");
while (!as->exit_update_thread) { while (!as->exit_update_thread) {
as->_update_streams(true); as->_update_streams(true);
@ -811,6 +811,7 @@ void AudioServerSW::init() {
#ifndef NO_AUDIO_THREADS #ifndef NO_AUDIO_THREADS
exit_update_thread=false; exit_update_thread=false;
thread = Thread::create(_thread_func,this); thread = Thread::create(_thread_func,this);
thread->set_name("AudioServerSW");
#endif #endif
} }