Skip to content

Commit

Permalink
Update boost::asio usage to conform to newer standards:
Browse files Browse the repository at this point in the history
  * Convert boost::asio::io_service to boost::asio::io_context
  * Convert strand.wrap(...) to boost::asio::bind_executor(strand, ...)
  * Convert strand.dispatch(...) to boost::asio::dispatch(strand, ...)
  * Drop usage of GET_IO_SERVICE macro from monero
  * Refactor REST server to manage resources better
  • Loading branch information
vtnerd committed Oct 24, 2024
1 parent a81d71a commit 46f78f1
Show file tree
Hide file tree
Showing 16 changed files with 251 additions and 182 deletions.
2 changes: 1 addition & 1 deletion src/net/zmq_async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace net { namespace zmq
}
}

expect<async_client> async_client::make(boost::asio::io_service& io, socket zsock)
expect<async_client> async_client::make(boost::asio::io_context& io, socket zsock)
{
MONERO_PRECOND(zsock != nullptr);

Expand Down
4 changes: 2 additions & 2 deletions src/net/zmq_async.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#pragma once

#include <boost/asio/compose.hpp>
#include <boost/asio/io_service.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/posix/stream_descriptor.hpp>
#include <boost/system/error_code.hpp>
#include <cstddef>
Expand Down Expand Up @@ -63,7 +63,7 @@ namespace net { namespace zmq
asocket asock;
bool close;

static expect<async_client> make(boost::asio::io_service& io, socket zsock);
static expect<async_client> make(boost::asio::io_context& io, socket zsock);
};

class read_msg_op
Expand Down
Loading

0 comments on commit 46f78f1

Please sign in to comment.