Commit Graph

16 Commits (master)

Author SHA1 Message Date
Alex Maese cd05d1771f Add ability to toggle through presets 8 months ago
jackun 45113bb7d2
Specify `fileChanged` argument type 2 years ago
jackun a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time 3 years ago
jackun 2f807a4c0d
Add `spdlog` wrap and logging 3 years ago
jackun e0832c7e02
Re-add config file watch in case of IN_DELETE_SELF 4 years ago
jackun 467c53d22f
Keep track of notifier thread to make sure it exits before `notify_thread` struct is freed 4 years ago
jackun 31f9cce720
[COMMENTED] Make inotify monitor new per-app config file or if delete, the main config file again
Needs to be triggered by main config file change.
FIXME what if there's no config file?
4 years ago
FlightlessMango bff9958284 Changed pthreads to std::thread 4 years ago
jackun 49742e1cea
[config] Load config changes to local copy of overlay_params so it does not block rendering thread while parsing 4 years ago
jackun d3f895cbef
[config] keep pthread_t pointers in notify_thread struct for MT safety 4 years ago
jackun 1b192c4910
[config] join notifier thread just to be sure 4 years ago
jackun e72a7bdd76
[config] Try to set notifier file descriptor to non-blocking mode; add start/stop_notifier functions
If setting to non-blocking fails, just closing the fd should kill it anyway
4 years ago
jackun 841d76c6af
Quit config watcher thread if it fails to init and clean up 4 years ago
jackun a0f5cb56a2
[config] Guard overlay_params from the thread with mutex 4 years ago
jackun 34184abf2e
[config] loop in the notifier thread and reload configuration file if it is changed 4 years ago
FlightlessMango c5dad16612 Listen for modify on config file 4 years ago