PostingPromise: reorder post-to target to be 1st arg

This commit is contained in:
2026-05-30 21:46:19 -04:00
parent ac39a8b876
commit c2eea37a7b
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -23,9 +23,9 @@ DeviceReattacher::DeviceReattacher(
} }
mrntt::MrnttNonViralPostingInvoker DeviceReattacher::reattachKnownListCReq( mrntt::MrnttNonViralPostingInvoker DeviceReattacher::reattachKnownListCReq(
[[maybe_unused]] sscl::co::ExplicitPostTarget postTarget,
[[maybe_unused]] std::exception_ptr &exceptionPtr, [[maybe_unused]] std::exception_ptr &exceptionPtr,
[[maybe_unused]] std::function<void()> callback, [[maybe_unused]] std::function<void()> callback)
[[maybe_unused]] sscl::co::ExplicitPostTarget postTarget)
{ {
/** EXPLANATION: /** EXPLANATION:
* DeviceManager attach APIs require the marionette thread; postTarget * DeviceManager attach APIs require the marionette thread; postTarget
@@ -92,13 +92,13 @@ void DeviceReattacher::holdReattachCReq()
reattachCReqInvoker.reset(); reattachCReqInvoker.reset();
reattachCReqInvoker.emplace(reattachKnownListCReq( reattachCReqInvoker.emplace(reattachKnownListCReq(
sscl::co::ExplicitPostTarget{ioThread->getIoContext()},
reattachLifetimeExceptionPtr, reattachLifetimeExceptionPtr,
[this]() [this]()
{ {
sscl::SpinLock::Guard guard(deviceReattacherCanceler.s.lock); sscl::SpinLock::Guard guard(deviceReattacherCanceler.s.lock);
reattachOpInFlight = false; reattachOpInFlight = false;
}, }));
sscl::co::ExplicitPostTarget{ioThread->getIoContext()}));
} }
void DeviceReattacher::onTimeout(const boost::system::error_code& error) void DeviceReattacher::onTimeout(const boost::system::error_code& error)
@@ -38,9 +38,9 @@ private:
void holdReattachCReq(); void holdReattachCReq();
mrntt::MrnttNonViralPostingInvoker reattachKnownListCReq( mrntt::MrnttNonViralPostingInvoker reattachKnownListCReq(
sscl::co::ExplicitPostTarget postTarget,
std::exception_ptr &exceptionPtr, std::exception_ptr &exceptionPtr,
std::function<void()> callback, std::function<void()> callback);
sscl::co::ExplicitPostTarget postTarget);
DeviceManager &parent; DeviceManager &parent;
std::shared_ptr<sscl::ComponentThread> ioThread; std::shared_ptr<sscl::ComponentThread> ioThread;