建筑物升压ASIO而无需穿线
Building Boost ASIO without threading
我想从以下方式构建所有Boost ASIO HTTP服务器示例:
https://github.com/boostorg/asio/tree/develop/example/example/cpp03/http
但是,我需要使用C 03/98,单线线无依赖项:: thread,boost :: thread :: thread或posix threads。我还需要静态链接到所有其他Boost库。还希望使用X86_64 Linux上的G -O3 -FLTO编译。我如何构建这样的示例?
这是不可能的。ASIO在内部使用静音(需要某种线程库)。此外,为了实现某些类型的异步操作,ASIO实际上需要创建少量的工作线程。
相关文章:
- 理解boost::asio-async_read在无需读取内容时的行为
- 提升 ASIO 无法识别计时器对象
- C++Boost Asio Pool线程,带有lambda函数和传递引用变量
- boost::asio::steady_timer()与sleep()我应该使用哪一个
- boost::asio如何生成多个协同程序,然后加入它们
- 缓慢提升ASIO
- 从 Boost ASIO 获取 epoll 描述符 io_service对象
- 如何在 Boost.Asio 中使用 Zero-copy sendmsg/receive
- C++ Boost::asio串行通信与Arduino无法写入
- 如何使用 Boost Asio 在 Android 上获取我的本地 udp IP 地址?
- 提升 Asio TCP 服务器 处理多个客户端
- boost::asio UDP 广播客户端仅接收"fast"数据包
- 提升 ASIO - io_service 不要等待连接到线程
- 执行时使用 boost::asio::d eadline_timer 时出错
- Boost.Asio/OpenSSL HTTPS GET certificate trouble
- C++ boost::asio::ip::tcp::acceptor 有时不接受连接器?
- boost::asio data owning `ConstBufferSequence`
- 如何替换此示例代码片段中已弃用的handler_type_t或 boost::asio::handler_type?
- 将 boost 序列化对象的 asio::streambuf 表示转换为 Beast 的 DynamicBody req.body()
- 建筑物升压ASIO而无需穿线