Explorar el Código

too early to rename thread

Ariel Manzur hace 9 años
padre
commit
d4ed043968
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      servers/audio/audio_server_sw.cpp

+ 2 - 1
servers/audio/audio_server_sw.cpp

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