aboutsummaryrefslogtreecommitdiff
path: root/brightness_ctrl.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-07-06 21:25:39 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-07-06 21:25:39 +0800
commitb5932d1d22d35cef95eb1cffbf489619b264442d (patch)
tree6040dc505e9b22875449bcc045fed9b0ac3f0692 /brightness_ctrl.hpp
parent61e0a974c07f38b8e42f226d68f22e2d1b26fa6d (diff)
downloadlightsd-b5932d1d22d35cef95eb1cffbf489619b264442d.tar.xz
Random code clean-ups to get ready for the next update.
Also tweaked the config a little bit.
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: