commit | 61be734700ab48afe2eef56c4342932c6b55974d | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Tue Jul 30 16:55:33 2024 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Tue Jul 30 20:50:55 2024 -0500 |
tree | 216118701d4b3c8d5030ed9e5587d4f3f610dbcb | |
parent | ef5c4eb0e3b0a3d01b05a6dced1d2905649efa6d [diff] |
stdexec: pass scheduler to default_task_context The latest version of stdexec[1] does not allow a default constructed `default_task_context` but requires a scheduler to be passed in. The previous default was to use an `inline_scheduler` so explicitly pass that in. [1]: https://github.com/openbmc/sdbusplus/commit/5cee91570368554a7fcbbd9418f65efda449fa70 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib210b42ba5272e0176cd4423b156ca6372115a55
diff --git a/platform-mc/terminus_manager.cpp b/platform-mc/terminus_manager.cpp index 1fe5c79..93fdb09 100644 --- a/platform-mc/terminus_manager.cpp +++ b/platform-mc/terminus_manager.cpp
@@ -141,7 +141,7 @@ auto& [scope, rcOpt] = discoverMctpTerminusTaskHandle.emplace(); scope.spawn(discoverMctpTerminusTask() | stdexec::then([&](int rc) { rcOpt.emplace(rc); }), - exec::default_task_context<void>()); + exec::default_task_context<void>(exec::inline_scheduler{})); } TerminiMapper::iterator