aboutsummaryrefslogtreecommitdiff
path: root/brightness_ctrl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'brightness_ctrl.hpp')
-rw-r--r--brightness_ctrl.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/brightness_ctrl.hpp b/brightness_ctrl.hpp
index 5beb0ec..c1e8a34 100644
--- a/brightness_ctrl.hpp
+++ b/brightness_ctrl.hpp
@@ -2,8 +2,9 @@
#define BRIGHTNESS_CTRL_HPP
#include <chrono>
#include <condition_variable>
-#include <experimental/filesystem>
+#include <filesystem>
#include <thread>
+#include <mutex>
#include <vector>
#include "sensor_als.hpp"
class BrightnessControl
@@ -14,7 +15,7 @@ private:
int delay,direction,br,maxbr,minabr,tr,offset;
size_t cur;
SensorALS *als;
- std::mutex interrupt_m,threshnotify_m;
+ std::mutex interrupt_m,threshnotify_m,adjust_m;
std::condition_variable interrupt,threshnotify;
void _brightness_slide(int p);
public: