m_StatusTimer->Start();
m_StatusTimer->Reschedule(0);
+#ifndef _WIN32
m_CommandThread = thread(boost::bind(&CompatComponent::CommandPipeThread, this, GetCommandPath()));
m_CommandThread.detach();
+#endif /* _WIN32 */
}
/**
{
}
+#ifndef _WIN32
void CompatComponent::CommandPipeThread(const String& commandPath)
{
(void) unlink(commandPath.CStr());
vector<String> argvExtra(argv.begin() + 1, argv.end());
ExternalCommand::Execute(argv[0], argvExtra);
}
+#endif /* _WIN32 */
void CompatComponent::DumpHostStatus(ofstream& fp, const Host::Ptr& host)
{
virtual void Stop(void);
private:
- Timer::Ptr m_StatusTimer;
+#ifndef _WIN32
thread m_CommandThread;
+ void CommandPipeThread(const String& commandPath);
+ void ProcessCommand(const String& command);
+#endif /* _WIN32 */
+
+ Timer::Ptr m_StatusTimer;
+
String GetStatusPath(void) const;
String GetObjectsPath(void) const;
String GetCommandPath(void) const;
- void CommandPipeThread(const String& commandPath);
- void ProcessCommand(const String& command);
-
void DumpHostStatus(ofstream& fp, const Host::Ptr& host);
void DumpHostObject(ofstream& fp, const Host::Ptr& host);