BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Once.h
1 #pragma once
2 
3 #include <functional>
4 
5 #include <Poco/Mutex.h>
6 
7 namespace BeeeOn {
8 
15 class Once {
16 public:
17  Once();
18 
19  void execute(const std::function<void ()> &func);
20 
21 private:
22  Poco::FastMutex m_lock;
23  bool m_triggered;
24 };
25 
26 }
Definition: Once.h:15