PostingPromise: reorder post-to target to be 1st arg
This commit is contained in:
+1
-1
Submodule libspinscale updated: 42076d6c78...a53e0ca325
@@ -23,9 +23,9 @@ DeviceReattacher::DeviceReattacher(
|
||||
}
|
||||
|
||||
mrntt::MrnttNonViralPostingInvoker DeviceReattacher::reattachKnownListCReq(
|
||||
[[maybe_unused]] sscl::co::ExplicitPostTarget postTarget,
|
||||
[[maybe_unused]] std::exception_ptr &exceptionPtr,
|
||||
[[maybe_unused]] std::function<void()> callback,
|
||||
[[maybe_unused]] sscl::co::ExplicitPostTarget postTarget)
|
||||
[[maybe_unused]] std::function<void()> callback)
|
||||
{
|
||||
/** EXPLANATION:
|
||||
* DeviceManager attach APIs require the marionette thread; postTarget
|
||||
@@ -92,13 +92,13 @@ void DeviceReattacher::holdReattachCReq()
|
||||
|
||||
reattachCReqInvoker.reset();
|
||||
reattachCReqInvoker.emplace(reattachKnownListCReq(
|
||||
sscl::co::ExplicitPostTarget{ioThread->getIoContext()},
|
||||
reattachLifetimeExceptionPtr,
|
||||
[this]()
|
||||
{
|
||||
sscl::SpinLock::Guard guard(deviceReattacherCanceler.s.lock);
|
||||
reattachOpInFlight = false;
|
||||
},
|
||||
sscl::co::ExplicitPostTarget{ioThread->getIoContext()}));
|
||||
}));
|
||||
}
|
||||
|
||||
void DeviceReattacher::onTimeout(const boost::system::error_code& error)
|
||||
|
||||
@@ -38,9 +38,9 @@ private:
|
||||
void holdReattachCReq();
|
||||
|
||||
mrntt::MrnttNonViralPostingInvoker reattachKnownListCReq(
|
||||
sscl::co::ExplicitPostTarget postTarget,
|
||||
std::exception_ptr &exceptionPtr,
|
||||
std::function<void()> callback,
|
||||
sscl::co::ExplicitPostTarget postTarget);
|
||||
std::function<void()> callback);
|
||||
|
||||
DeviceManager &parent;
|
||||
std::shared_ptr<sscl::ComponentThread> ioThread;
|
||||
|
||||
Reference in New Issue
Block a user