mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: fm-aidl: Call std:🧵:detach()
To run without being terminated because thread ref is no longer there
This commit is contained in:
parent
5a70eb4ed3
commit
666b99ecec
2 changed files with 2 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ namespace aidl::vendor::eureka::hardware::fmradio {
|
||||||
const std::lock_guard<std::timed_mutex> guard(lock);
|
const std::lock_guard<std::timed_mutex> guard(lock);
|
||||||
freqs_list = fm_radio_slsi::get_freqs(fd);
|
freqs_list = fm_radio_slsi::get_freqs(fd);
|
||||||
});
|
});
|
||||||
|
search_thread.detach();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@ constexpr const char *FM_FREQ_SEEK = FM_SYSFS_BASE "/radio_freq_seek";
|
||||||
freqs_list.push_back(freq);
|
freqs_list.push_back(freq);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
search_thread.detach();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue