mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(Custom): handle continuous script
This commit is contained in:
@ -70,7 +70,7 @@ struct SleeperThread {
|
||||
condvar_.notify_all();
|
||||
}
|
||||
|
||||
~SleeperThread()
|
||||
auto stop()
|
||||
{
|
||||
do_run_ = false;
|
||||
condvar_.notify_all();
|
||||
@ -79,6 +79,11 @@ struct SleeperThread {
|
||||
}
|
||||
}
|
||||
|
||||
~SleeperThread()
|
||||
{
|
||||
stop();
|
||||
}
|
||||
|
||||
private:
|
||||
std::thread thread_;
|
||||
std::condition_variable condvar_;
|
||||
|
Reference in New Issue
Block a user