11#include <config_fuzzers.h>
29 : mrSystemDependentDataManager(rSystemDependentDataManager),
56 const sal_uInt32 nSeconds = 60;
59 sal_uInt32 nResult(0 == nSeconds ? 1 : nSeconds);
66 const double fScaleToMB(3600.0 / (1024.0 * 1024.0 * 10.0));
69 const double fMultiplierSeconds(10.0);
72 nResult =
static_cast<sal_uInt32
>((fMultiplierSeconds * nSeconds) / sqrt(nBytes * fScaleToMB));
81 if(nResult > nSeconds)
116 aData->getSystemDependentDataManager().endUsage(
aData);
123 const size_t hash_code(
typeid(*rData).hash_code());
132 aData->getSystemDependentDataManager().endUsage(
aData);
140 rData->getSystemDependentDataManager().startUsage(rData);
150 aRetval =
result->second.lock();
154 aRetval->getSystemDependentDataManager().touchUsage(aRetval);
SystemDependentDataHolder()
std::map< size_t, SystemDependentData_WeakPtr > maSystemDependentReferences
void addOrReplaceSystemDependentData(SystemDependentData_SharedPtr &rData)
virtual ~SystemDependentDataHolder()
SystemDependentData_SharedPtr getSystemDependentData(size_t hash_code) const
virtual ~SystemDependentDataManager()
SystemDependentDataManager()
virtual sal_Int64 estimateUsageInBytes() const
virtual ~SystemDependentData()
sal_uInt32 calculateCombinedHoldCyclesInSeconds() const
SystemDependentData(const SystemDependentData &)=delete
sal_uInt32 mnCalculatedCycles
constexpr OUStringLiteral aData
std::shared_ptr< SystemDependentData > SystemDependentData_SharedPtr