mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-30 16:42:14 +00:00
fix(userspace/falco) class naming convention
Co-authored-by: Lorenzo Fontana <fontanalorenz@gmail.com> Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
c237ddc738
commit
f8b66d051b
@ -271,7 +271,7 @@ void falco_outputs::reopen_outputs()
|
||||
|
||||
void falco_outputs::stop_worker()
|
||||
{
|
||||
Watchdog<void *> wd;
|
||||
watchdog<void *> wd;
|
||||
wd.start([&](void *) -> void {
|
||||
falco_logger::log(LOG_NOTICE, "output channels still blocked, discarding all remaining notifications\n");
|
||||
m_queue.clear();
|
||||
@ -295,7 +295,7 @@ inline void falco_outputs::push(ctrl_msg_type cmt)
|
||||
|
||||
void falco_outputs::worker()
|
||||
{
|
||||
Watchdog<std::string> wd;
|
||||
watchdog<std::string> wd;
|
||||
wd.start([&](std::string payload) -> void {
|
||||
falco_logger::log(LOG_CRIT, "\"" + payload + "\" output timeout, all output channels are blocked\n");
|
||||
});
|
||||
|
@ -20,16 +20,16 @@ limitations under the License.
|
||||
#include <atomic>
|
||||
|
||||
template<typename _T>
|
||||
class Watchdog
|
||||
class watchdog
|
||||
{
|
||||
public:
|
||||
Watchdog():
|
||||
watchdog():
|
||||
m_timeout(nullptr),
|
||||
m_is_running(false)
|
||||
{
|
||||
}
|
||||
|
||||
~Watchdog()
|
||||
~watchdog()
|
||||
{
|
||||
stop();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user