Use strand executors

This commit is contained in:
badaix 2021-09-18 11:11:34 +02:00
parent e6872593ee
commit 12aeb5859c
15 changed files with 38 additions and 38 deletions

View file

@ -62,7 +62,7 @@ void PipeStream::do_connect()
pipe_size = fcntl(fd, F_GETPIPE_SZ);
#endif
LOG(TRACE, LOG_TAG) << "Stream: " << name_ << ", connect to pipe: " << uri_.path << ", fd: " << fd << ", pipe size: " << pipe_size << "\n";
stream_ = std::make_unique<boost::asio::posix::stream_descriptor>(ioc_, fd);
stream_ = std::make_unique<boost::asio::posix::stream_descriptor>(strand_, fd);
on_connect();
}