diff --git a/Include/Aurora/Async/Async.hpp b/Include/Aurora/Async/Async.hpp index f59fd712..24672957 100644 --- a/Include/Aurora/Async/Async.hpp +++ b/Include/Aurora/Async/Async.hpp @@ -245,7 +245,7 @@ namespace Aurora::Async virtual bool Poll(bool block) = 0; - virtual bool AddLoopSource(const AuSPtr &loopSource, WorkerId_t workerId, AuUInt32 timeout, const AuConsumer, bool> &callback) = 0; + virtual bool ScheduleLoopSource(const AuSPtr &loopSource, WorkerId_t workerId, AuUInt32 timeout, const AuConsumer, bool> &callback) = 0; }; diff --git a/Source/Async/AsyncApp.cpp b/Source/Async/AsyncApp.cpp index 0b10aa24..d607ddfc 100644 --- a/Source/Async/AsyncApp.cpp +++ b/Source/Async/AsyncApp.cpp @@ -248,7 +248,7 @@ namespace Aurora::Async return ranAtLeastOne; } - bool AsyncApp::AddLoopSource(const AuSPtr &loopSource, WorkerId_t workerId, AuUInt32 timeout, const AuConsumer, bool> &callback) + bool AsyncApp::ScheduleLoopSource(const AuSPtr &loopSource, WorkerId_t workerId, AuUInt32 timeout, const AuConsumer, bool> &callback) { auto thread = this->GetThreadHandle(workerId); if (!thread) diff --git a/Source/Async/AsyncApp.hpp b/Source/Async/AsyncApp.hpp index bf9b755c..357c7f62 100644 --- a/Source/Async/AsyncApp.hpp +++ b/Source/Async/AsyncApp.hpp @@ -62,7 +62,7 @@ namespace Aurora::Async bool CtxYield(); int CfxPollPush(); void CtxPollReturn(const AuSPtr &state, int status, bool hitTask); - bool AddLoopSource(const AuSPtr &loopSource, WorkerId_t workerId, AuUInt32 timeout, const AuConsumer, bool> &callback) override; + bool ScheduleLoopSource(const AuSPtr &loopSource, WorkerId_t workerId, AuUInt32 timeout, const AuConsumer, bool> &callback) override; private: AuSPtr GetThreadHandle(WorkerId_t id);