Workaround TSAN CI bug

fix #2499
This commit is contained in:
Richard Hodges
2022-08-16 10:26:23 +02:00
parent 00293a6adb
commit 3f7f2572b0
2 changed files with 18 additions and 8 deletions

View File

@ -1,3 +1,7 @@
* Workaround TSAN CI bug.
--------------------------------------------------------------------------------
Version 332:
* Fix beast::zlib warnings

View File

@ -121,6 +121,11 @@ inline
void
enable_yield_to::
spawn(F0&& f, FN&&... fn)
{
// dispatch of spawn is a workaround for
// https://github.com/boostorg/beast/issues/2499
asio::dispatch(ioc_,
[&]
{
asio::spawn(ioc_,
[&](yield_context yield)
@ -131,6 +136,7 @@ spawn(F0&& f, FN&&... fn)
cv_.notify_all();
}
, boost::coroutines::attributes(2 * 1024 * 1024));
});
spawn(fn...);
}