From 2bb7d9295762b10da0fa97e1e6deb402bbb04529 Mon Sep 17 00:00:00 2001 From: arvidn Date: Wed, 13 Nov 2019 10:46:57 +0000 Subject: [PATCH] construct io_context with the hints that it's single-threaded --- simulation/libsimulator | 2 +- src/session.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simulation/libsimulator b/simulation/libsimulator index e4fb5e171..ba65f2fc2 160000 --- a/simulation/libsimulator +++ b/simulation/libsimulator @@ -1 +1 @@ -Subproject commit e4fb5e171a6ed885e7de3192153ba77835d23dee +Subproject commit ba65f2fc25cb0cf6ab141102952b9c5c54f02c41 diff --git a/src/session.cpp b/src/session.cpp index 55e3b843a..dc686b855 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -326,7 +326,7 @@ namespace { if (internal_executor) { // the user did not provide an executor, we have to use our own - m_io_service = std::make_shared(); + m_io_service = std::make_shared(1); ios = m_io_service.get(); }