mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-25 04:11:42 -04:00
rename executeGDThreadQueue to executeMainThreadQueue
This commit is contained in:
parent
be7ee3ef18
commit
b70b64dfc9
3 changed files with 4 additions and 4 deletions
loader/src
|
@ -6,7 +6,7 @@ using namespace geode::prelude;
|
|||
|
||||
struct FunctionQueue : Modify<FunctionQueue, CCScheduler> {
|
||||
void update(float dt) {
|
||||
LoaderImpl::get()->executeGDThreadQueue();
|
||||
LoaderImpl::get()->executeMainThreadQueue();
|
||||
return CCScheduler::update(dt);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -697,9 +697,9 @@ void Loader::Impl::queueInMainThread(ScheduledFunction func) {
|
|||
m_mainThreadQueue.push_back(func);
|
||||
}
|
||||
|
||||
void Loader::Impl::executeGDThreadQueue() {
|
||||
void Loader::Impl::executeMainThreadQueue() {
|
||||
// copy queue to avoid locking mutex if someone is
|
||||
// running addToGDThread inside their function
|
||||
// running addToMainThread inside their function
|
||||
m_mainThreadMutex.lock();
|
||||
auto queue = m_mainThreadQueue;
|
||||
m_mainThreadQueue.clear();
|
||||
|
|
|
@ -114,7 +114,7 @@ namespace geode {
|
|||
void updateResources(bool forceReload);
|
||||
|
||||
void queueInMainThread(ScheduledFunction func);
|
||||
void executeGDThreadQueue();
|
||||
void executeMainThreadQueue();
|
||||
|
||||
bool isReadyToHook() const;
|
||||
void addUninitializedHook(Hook* hook, Mod* mod);
|
||||
|
|
Loading…
Add table
Reference in a new issue