Skip to content

Commit d23977f

Browse files
committed
change event_loop constructor parameter from io_context to strand
1 parent 0510847 commit d23977f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/python/eventloop.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ namespace boost { namespace python { namespace asio {
1818
class event_loop
1919
{
2020
public:
21-
event_loop(boost::asio::io_context& ctx):
22-
_strand{ctx}, _created_time{std::chrono::steady_clock::now()}
21+
event_loop(boost::asio::io_context::strand& strand):
22+
_strand{strand}, _created_time{std::chrono::steady_clock::now()}
2323
{
2424
try
2525
{

0 commit comments

Comments
 (0)