Update reutrn type

This commit is contained in:
2026-05-19 06:45:59 -04:00
parent dc58e5d521
commit 15295ac05e
+5 -8
View File
@@ -168,10 +168,11 @@ public:
const std::shared_ptr<PuppetThread> &_selfPtr = nullptr) const std::shared_ptr<PuppetThread> &_selfPtr = nullptr)
: threadOp(_threadOp), parentThread(_parentThread), selfPtr(_selfPtr) : threadOp(_threadOp), parentThread(_parentThread), selfPtr(_selfPtr)
{ {
std::function<void(bool)> callback = [this](bool success) cps::Callback<threadLifetimeMgmtOpCbFn> callback = [this]
{ {
settled = true; settled = true;
retval = success; if (callerSchedHandle)
{ callerSchedHandle.resume(); }
}; };
if (threadOp == ThreadOp::JOLT && selfPtr == nullptr) if (threadOp == ThreadOp::JOLT && selfPtr == nullptr)
@@ -214,14 +215,10 @@ public:
return true; return true;
} }
bool await_resume() noexcept void await_resume() noexcept {}
{
return retval;
}
bool settled = false; bool settled = false;
bool retval = false; std::coroutine_handle<void> callerSchedHandle;
std::coroutine_handle<void> const callerSchedHandle;
PuppetThread &parentThread; PuppetThread &parentThread;
const std::shared_ptr<PuppetThread> selfPtr; const std::shared_ptr<PuppetThread> selfPtr;
}; };