mirror of
https://github.com/latentPrion/libspinscale.git
synced 2026-06-23 19:48:32 +00:00
Update reutrn type
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user