naming the audio thread from within itself
This commit is contained in:
parent
f25812794d
commit
5e0f43d051
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue