std::async has nodiscard in 20.04, i believe that function won't return until the async completes

old-commit-hash: cb3ade51ef
commatwo_master
George Hotz 5 years ago
parent 9e35e058ed
commit 16e2bbf536
  1. 2
      selfdrive/ui/qt/window.cc

@ -107,7 +107,7 @@ void GLWindow::timerUpdate(){
}
#endif
std::async(std::launch::async,
auto f = std::async(std::launch::async,
[brightness]{
std::ofstream brightness_control("/sys/class/backlight/panel0-backlight/brightness");
if (brightness_control.is_open()){

Loading…
Cancel
Save