Skip to content

Commit

Permalink
reduce duplicate calls
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomx32 committed Mar 3, 2025
1 parent 724251f commit 569a9f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/luisa/core/dynamic_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class LC_CORE_API DynamicModule : concepts::Noncopyable {
*
* @param path
*/
static void add_search_path(const std::filesystem::path &path) noexcept;
static void add_search_path(const std::filesystem::path &canonical_path) noexcept;

/**
* @brief Remove dynamic module search path
Expand Down
3 changes: 1 addition & 2 deletions src/core/dynamic_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ void DynamicModule::dispose() noexcept {
}
#endif

void DynamicModule::add_search_path(const luisa::filesystem::path &path) noexcept {
void DynamicModule::add_search_path(const luisa::filesystem::path &canonical_path) noexcept {
std::lock_guard lock { dynamic_module_search_path_mutex() };
auto canonical_path = luisa::filesystem::canonical(path);
auto &&paths = dynamic_module_search_paths();
if (
auto iter = std::find_if(
Expand Down

0 comments on commit 569a9f2

Please sign in to comment.