1
This commit is contained in:
parent
a3c22feb24
commit
2ddbc831ec
@ -24,7 +24,7 @@ void CoMgr::Update()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::weak_ptr<Coroutine> CoMgr::CreateCoroutine(std::function<void(Coroutine*)> cb)
|
std::weak_ptr<Coroutine> CoMgr::CreateCo(std::function<void(Coroutine*)> cb)
|
||||||
{
|
{
|
||||||
auto co = std::make_shared<Coroutine>(cb);
|
auto co = std::make_shared<Coroutine>(cb);
|
||||||
co->hold_self_ = co;
|
co->hold_self_ = co;
|
||||||
|
@ -16,7 +16,7 @@ class CoMgr : public a8::Singleton<CoMgr>
|
|||||||
void UnInit();
|
void UnInit();
|
||||||
void Update();
|
void Update();
|
||||||
|
|
||||||
std::weak_ptr<Coroutine> CreateCoroutine(std::function<void(Coroutine*)> cb);
|
std::weak_ptr<Coroutine> CreateCo(std::function<void(Coroutine*)> cb);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user