#pragma once #include "../../Communication/S7Command.h" #include #include using namespace std; class PLCReveiver { public: PLCReveiver(){} virtual ~PLCReveiver(){} void AddCmd(S7Command* command) { unique_lock lck(m_WirteMutex); m_RTCommands.push(command); //m_WriteCV.notify_one(); } protected: queue m_RTCommands; std::mutex m_WirteMutex; //condition_variable m_WriteCV; };