建筑物升压ASIO而无需穿线

Building Boost ASIO without threading

本文关键字:ASIO 建筑物      更新时间:2023-10-16

我想从以下方式构建所有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实际上需要创建少量的工作线程。