mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
pass const ref to func in queueInMainThread
This commit is contained in:
parent
516a1c67da
commit
3e840cdb47
2 changed files with 2 additions and 2 deletions
|
@ -691,7 +691,7 @@ bool Loader::Impl::loadHooks() {
|
|||
return !hadErrors;
|
||||
}
|
||||
|
||||
void Loader::Impl::queueInMainThread(ScheduledFunction func) {
|
||||
void Loader::Impl::queueInMainThread(const ScheduledFunction& func) {
|
||||
std::lock_guard<std::mutex> lock(m_mainThreadMutex);
|
||||
m_mainThreadQueue.push_back(func);
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ namespace geode {
|
|||
|
||||
void updateResources(bool forceReload);
|
||||
|
||||
void queueInMainThread(ScheduledFunction func);
|
||||
void queueInMainThread(const ScheduledFunction& func);
|
||||
void executeMainThreadQueue();
|
||||
|
||||
bool isReadyToHook() const;
|
||||
|
|
Loading…
Reference in a new issue