add_ceph_unittest(unittest_rgw_dmclock_scheduler)
target_link_libraries(unittest_rgw_dmclock_scheduler rgw_schedulers global ${UNITTEST_LIBS})
-if(WITH_BOOST_CONTEXT)
- target_compile_definitions(unittest_rgw_dmclock_scheduler PRIVATE BOOST_COROUTINES_NO_DEPRECATION_WARNING)
- target_link_libraries(unittest_rgw_dmclock_scheduler Boost::coroutine Boost::context)
-endif()
if(WITH_RADOSGW_AMQP_ENDPOINT)
add_executable(unittest_rgw_amqp test_rgw_amqp.cc)
#include "rgw/rgw_dmclock_async_scheduler.h"
#include <optional>
-#ifdef HAVE_BOOST_CONTEXT
-#include <boost/asio/spawn.hpp>
-#endif
+#include <spawn/spawn.hpp>
#include <gtest/gtest.h>
#include "acconfig.h"
#include "global/global_context.h"
{
boost::asio::io_context context;
- boost::asio::spawn(context, [&] (boost::asio::yield_context yield) {
+ spawn::spawn(context, [&] (spawn::yield_context yield) {
ClientCounters counters(g_ceph_context);
AsyncScheduler queue(g_ceph_context, context, std::ref(counters), nullptr,
[] (client_id client) -> ClientInfo* {