8 packageFinders(
s.packageFinders), timeout(
s.timeout)
18 const std::filesystem::path& packagePath,
20 bool usePackagePathOnlyAsHint)
22 std::unique_lock lock(mutex);
23 auto it = packageFinders.find(packageName);
24 if (it != packageFinders.end())
26 if ((IceUtil::Time::now() - it->second.first) > timeout)
29 packageName, packagePath, suppressStdErr, usePackagePathOnlyAsHint);
30 it->second.first = IceUtil::Time::now();
32 return it->second.second;
36 auto insertion = packageFinders.insert(std::make_pair(
39 return insertion.first->second.second;