From 9635232761f0336dea412de09298b80f90a42713 Mon Sep 17 00:00:00 2001 From: tomatenkuchen Date: Tue, 12 Oct 2021 18:50:55 +0200 Subject: [PATCH] added utility stdlib to static_thread_pool.cpp to resolve dependancy issue with std::exchange. appended noexcept to cppcoro::detail::task_promise::final_awaitable::await_suspend in CPPCORO_COMPILER_SUPPORTS_SYMMETRIC_TRANSFER=0 mode (for gcc) --- include/cppcoro/task.hpp | 2 +- lib/static_thread_pool.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/cppcoro/task.hpp b/include/cppcoro/task.hpp index 3bff404f..97e16f54 100644 --- a/include/cppcoro/task.hpp +++ b/include/cppcoro/task.hpp @@ -49,7 +49,7 @@ namespace cppcoro // were crashing under x86 optimised builds. template CPPCORO_NOINLINE - void await_suspend(std::experimental::coroutine_handle coroutine) + void await_suspend(std::experimental::coroutine_handle coroutine) noexcept { task_promise_base& promise = coroutine.promise(); diff --git a/lib/static_thread_pool.cpp b/lib/static_thread_pool.cpp index 36c39ce9..1e6d1cc1 100644 --- a/lib/static_thread_pool.cpp +++ b/lib/static_thread_pool.cpp @@ -12,6 +12,7 @@ #include #include #include +#include namespace {