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(
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user