mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: parts-aidl: Don't call ->detach()
According to cppreference.com, detach allows the thread to operate independently of thread handle, which is not our intent since we need it completely under control https://en.cppreference.com/w/cpp/thread/thread/detach
This commit is contained in:
parent
c12209095a
commit
b9b9d7edcf
1 changed files with 0 additions and 1 deletions
|
|
@ -33,7 +33,6 @@ void SmartChargeImpl::start(void) {
|
|||
shouldRun = true;
|
||||
monitor = new std::thread(battery_monitor, limit_percent, restart_percent,
|
||||
&charge_limit_cnt, &restart_cnt);
|
||||
monitor->detach();
|
||||
}
|
||||
|
||||
void SmartChargeImpl::stop(void) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue