18 #ifndef INTERFACETHREADER_HPP_ 19 #define INTERFACETHREADER_HPP_ 51 std::unique_ptr<Interface> interface,
52 std::chrono::microseconds = std::chrono::microseconds(100000),
64 std::unique_ptr<Interface> interface_;
65 std::thread tx_thread_;
66 std::thread rx_thread_;
67 std::chrono::microseconds timeout_;
68 std::atomic<bool> running_;
75 #endif // INTERFACETHREADER_HPP_
Start the interface (and worker threads) immediately.
InterfaceThreader(std::unique_ptr< Interface > interface, std::chrono::microseconds=std::chrono::microseconds(100000), Threads start_threads=InterfaceThreader::START)
Delay starting, use start to launch threads.
InterfaceThreader & operator=(const InterfaceThreader &other)=delete