6 #ifndef __TC_PROCESS_WRAPPER 7 #define __TC_PROCESS_WRAPPER 9 #include "io_buffer.hpp" 14 #include <core/parallel/pthread_tools.hpp> 16 #include <process/process.hpp> 20 namespace visualization {
21 class process_wrapper {
23 volatile bool m_alive;
27 io_buffer m_inputBuffer;
28 std::thread m_inputThread;
29 io_buffer m_outputBuffer;
30 std::thread m_outputThread;
33 explicit process_wrapper(
const std::string& path_to_client);
35 process_wrapper& operator<<(
const std::string& to_client);
36 process_wrapper& operator>>(std::string& from_client);
43 #endif // __TC_PROCESS_WRAPPER