diff options
Diffstat (limited to 'src/zenstore/cache/structuredcachestore.cpp')
| -rw-r--r-- | src/zenstore/cache/structuredcachestore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/cache/structuredcachestore.cpp b/src/zenstore/cache/structuredcachestore.cpp index da6acbde4..07e72ebb5 100644 --- a/src/zenstore/cache/structuredcachestore.cpp +++ b/src/zenstore/cache/structuredcachestore.cpp @@ -1582,7 +1582,7 @@ TEST_CASE("cachestore.threadedinsert") // * doctest::skip(true)) CreateDirectories(TempDir.Path()); - WorkerThreadPool ThreadPool(Max(std::thread::hardware_concurrency(), 8u)); + WorkerThreadPool ThreadPool(Max(GetHardwareConcurrency(), 8u)); GcManager Gc; auto JobQueue = MakeJobQueue(1, "testqueue"); ZenCacheNamespace Zcs(Gc, *JobQueue, TempDir.Path(), {}); @@ -2257,7 +2257,7 @@ TEST_CASE("cachestore.newgc.basics") std::vector<IoHash> CacheRecords; std::vector<IoHash> UnstructuredCacheValues; - WorkerThreadPool WorkerPool(Max(std::thread::hardware_concurrency() - 1u, 2u)); + WorkerThreadPool WorkerPool(Max(GetHardwareConcurrency() - 1u, 2u)); const auto TearDrinkerBucket = "teardrinker"sv; { |