Commit ef3914c9 by Ben Clayton

SubzeroReactor: Use new marl::Scheduler::Config API.

`marl::Scheduler::setWorkerThreadCount()` and `marl::Scheduler::setThreadInitializer()` have been deprecated. `marl::Scheduler::Config` is the new API. This got missed from 45493. See https://github.com/google/marl/issues/139 for context. Bug: b/140546382 Change-Id: Ic09c196b4c81f316cbf73de5395757108c16945c
parent 8cbee410
...@@ -244,9 +244,9 @@ std::shared_ptr<rr::CoroutineGenerator> coroGen; ...@@ -244,9 +244,9 @@ std::shared_ptr<rr::CoroutineGenerator> coroGen;
marl::Scheduler &getOrCreateScheduler() marl::Scheduler &getOrCreateScheduler()
{ {
static auto scheduler = [] { static auto scheduler = [] {
auto s = std::make_unique<marl::Scheduler>(); marl::Scheduler::Config cfg;
s->setWorkerThreadCount(8); cfg.setWorkerThreadCount(8);
return s; return std::make_unique<marl::Scheduler>(cfg);
}(); }();
return *scheduler; return *scheduler;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment