7 #include <Poco/AtomicCounter.h>
8 #include <Poco/Event.h>
9 #include <Poco/Timespan.h>
11 #include "loop/StoppableRunnable.h"
12 #include "hotplug/AbstractHotplugMonitor.h"
87 bool parseLine(
const std::string &line, std::string &key, std::string &value)
const;
100 void fireEvent(
const HotplugEvent &event,
const std::string &action);
103 std::string m_pipePath;
104 Poco::Event m_waitPipe;
105 Poco::Timespan m_pollTimeout;
106 Poco::AtomicCounter m_stop;
void stop() override
Definition: PipeHotplugMonitor.cpp:263
bool processEvent(FdInputStream &input)
Definition: PipeHotplugMonitor.cpp:89
void setPollTimeout(const Poco::Timespan &timeout)
Definition: PipeHotplugMonitor.cpp:274
bool parseLine(const std::string &line, std::string &key, std::string &value) const
Definition: PipeHotplugMonitor.cpp:43
void setPipePath(const std::string &path)
Definition: PipeHotplugMonitor.cpp:269
Definition: AbstractHotplugMonitor.h:13
Definition: HotplugEvent.h:10
void pollForEvents(FdInputStream &input)
Definition: PipeHotplugMonitor.cpp:204
Definition: StoppableRunnable.h:8
int openPipe()
Definition: PipeHotplugMonitor.cpp:187
Definition: PipeHotplugMonitor.h:41
void fillEvent(HotplugEvent &event, const std::string &key, const std::string &value) const
Definition: PipeHotplugMonitor.cpp:56
bool skipEvent(FdInputStream &input) const
Definition: PipeHotplugMonitor.cpp:72