Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0a6cbdf authored by Greg Daniel's avatar Greg Daniel Committed by Automerger Merge Worker
Browse files

Merge "Add a mutex to VulkanManager::initialize." into sc-dev am: 830db628

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14548617

Change-Id: I2f1cda764bb94e3e4e109e244e5f54c2d055b972
parents 33f9edcc 830db628
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -340,6 +340,8 @@ void VulkanManager::setupDevice(GrVkExtensions& grExtensions, VkPhysicalDeviceFe
}

void VulkanManager::initialize() {
    std::lock_guard _lock{mInitializeLock};

    if (mDevice != VK_NULL_HANDLE) {
        return;
    }
+2 −0
Original line number Diff line number Diff line
@@ -220,6 +220,8 @@ private:

    VkSemaphore mSwapSemaphore = VK_NULL_HANDLE;
    void* mDestroySemaphoreContext = nullptr;

    std::mutex mInitializeLock;
};

} /* namespace renderthread */