diff --git a/server/robotserver/comgr.cc b/server/robotserver/comgr.cc index 9a5d1e1d..4deb4ad9 100644 --- a/server/robotserver/comgr.cc +++ b/server/robotserver/comgr.cc @@ -24,7 +24,7 @@ void CoMgr::Update() } } -std::weak_ptr CoMgr::CreateCoroutine(std::function cb) +std::weak_ptr CoMgr::CreateCo(std::function cb) { auto co = std::make_shared(cb); co->hold_self_ = co; diff --git a/server/robotserver/comgr.h b/server/robotserver/comgr.h index fd8c7bc2..b5191de3 100644 --- a/server/robotserver/comgr.h +++ b/server/robotserver/comgr.h @@ -16,7 +16,7 @@ class CoMgr : public a8::Singleton void UnInit(); void Update(); - std::weak_ptr CreateCoroutine(std::function cb); + std::weak_ptr CreateCo(std::function cb); private: