mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-04 04:52:09 +08:00
std::async has nodiscard in 20.04, i believe that function won't return until the async completes
old-commit-hash: cb3ade51efa4131bf78f96c052e49b2a414b83e5
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