MCPcopy Create free account
hub / github.com/borndotcom/react-native-godot / updateWindows

Method updateWindows

android/src/main/cpp/GodotModule.cpp:619–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619void 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
633void GodotModule::runOnGodotThread(std::function<void()> f, bool wait) {
634 if (wait) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected