| 617 | } |
| 618 | |
| 619 | void GodotModule::updateWindows(bool adding) { |
| 620 | LibGodot::updateWindows(); |
| 621 | AndroidPlatformData *data = static_cast<AndroidPlatformData *>(_data); |
| 622 | std::map<std::string, WindowFuncData> callbacks; |
| 623 | { |
| 624 | std::lock_guard lock(data->windowUpdateMutex); |
| 625 | callbacks = data->windowUpdateCallbacks; |
| 626 | } |
| 627 | for (const std::pair<std::string, WindowFuncData> elem : callbacks) { |
| 628 | LOGD("Updating Window: %s", elem.first.c_str()); |
| 629 | elem.second.func(true); |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | void GodotModule::runOnGodotThread(std::function<void()> f, bool wait) { |
| 634 | if (wait) { |
nothing calls this directly
no outgoing calls
no test coverage detected