mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 23:12:04 +08:00
std::async has nodiscard in 20.04, i believe that function won't return until the async completes
This commit is contained in:
@@ -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()){
|
||||
|
||||
Reference in New Issue
Block a user