8 packageFinders(
s.packageFinders),
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)
28 it->second.second =
CMakePackageFinder(packageName, packagePath, suppressStdErr, usePackagePathOnlyAsHint);
29 it->second.first = IceUtil::Time::now();
31 return it->second.second;
35 auto insertion = packageFinders.insert(std::make_pair(packageName, std::make_pair(IceUtil::Time::now(),
CMakePackageFinder(packageName))));
36 return insertion.first->second.second;