Allow enabling Boost.Asio's support for using `io_uring`
It won't likely do much regarding file handling as code is currently still using `boost::asio::posix::stream_descriptor` or Boost.Beast's file handling (which uses blocking I/O). I suppose one needs to use the new file API described here under "Asio 1.22.0 / Boost 1.78": https://www.boost.org/doc/libs/1_78_0/doc/html/boost_asio/history.html
This commit is contained in:
parent
9f0ff84bba
commit
4fbe3df095
|
@ -92,6 +92,11 @@ endif ()
|
|||
set(BOOST_ARGS "REQUIRED;COMPONENTS;system;filesystem")
|
||||
use_package(TARGET_NAME Boost::system PACKAGE_NAME Boost PACKAGE_ARGS "${BOOST_ARGS}")
|
||||
use_package(TARGET_NAME Boost::filesystem PACKAGE_NAME Boost PACKAGE_ARGS "${BOOST_ARGS}")
|
||||
option(BOOST_ASIO_IO_URING OFF "enable use of io_uring")
|
||||
if (BOOST_ASIO_IO_URING)
|
||||
list(APPEND META_PUBLIC_COMPILE_DEFINITIONS BOOST_ASIO_HAS_IO_URING BOOST_ASIO_DISABLE_EPOLL)
|
||||
use_pkg_config_module(PKG_CONFIG_MODULES "liburing" VISIBILITY PUBLIC)
|
||||
endif ()
|
||||
|
||||
# find reflective-rapidjson
|
||||
find_package(reflective_rapidjson${CONFIGURATION_PACKAGE_SUFFIX} REQUIRED)
|
||||
|
|
Loading…
Reference in New Issue