Loading vulkan/libvulkan/layers_extensions.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -165,10 +165,15 @@ void LayerLibrary::Close() { std::lock_guard<std::mutex> lock(mutex_); if (--refcount_ == 0) { ALOGV("closing layer library '%s'", path_.c_str()); dlclose(dlhandle_); std::string error_msg; if (!android::CloseNativeLibrary(dlhandle_, native_bridge_, &error_msg)) { ALOGE("failed to unload library '%s': %s", path_.c_str(), error_msg.c_str()); refcount_++; } else { dlhandle_ = nullptr; } } } bool LayerLibrary::EnumerateLayers(size_t library_idx, std::vector<Layer>& instance_layers) const { Loading Loading
vulkan/libvulkan/layers_extensions.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -165,10 +165,15 @@ void LayerLibrary::Close() { std::lock_guard<std::mutex> lock(mutex_); if (--refcount_ == 0) { ALOGV("closing layer library '%s'", path_.c_str()); dlclose(dlhandle_); std::string error_msg; if (!android::CloseNativeLibrary(dlhandle_, native_bridge_, &error_msg)) { ALOGE("failed to unload library '%s': %s", path_.c_str(), error_msg.c_str()); refcount_++; } else { dlhandle_ = nullptr; } } } bool LayerLibrary::EnumerateLayers(size_t library_idx, std::vector<Layer>& instance_layers) const { Loading