thread
This commit is contained in:
parent
9bf7adfc1f
commit
1bc91848e3
1 changed files with 1 additions and 2 deletions
|
@ -767,8 +767,6 @@ void AudioServerSW::_thread_func(void *self) {
|
||||||
|
|
||||||
AudioServerSW *as=(AudioServerSW *)self;
|
AudioServerSW *as=(AudioServerSW *)self;
|
||||||
|
|
||||||
as->thread->set_name("AudioServerSW");
|
|
||||||
|
|
||||||
while (!as->exit_update_thread) {
|
while (!as->exit_update_thread) {
|
||||||
as->_update_streams(true);
|
as->_update_streams(true);
|
||||||
OS::get_singleton()->delay_usec(5000);
|
OS::get_singleton()->delay_usec(5000);
|
||||||
|
@ -809,6 +807,7 @@ void AudioServerSW::init() {
|
||||||
#ifndef NO_THREADS
|
#ifndef NO_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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue