aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/workspaces.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore/workspaces.cpp')
-rw-r--r--src/zenstore/workspaces.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zenstore/workspaces.cpp b/src/zenstore/workspaces.cpp
index 4e7bd79a3..c2391588c 100644
--- a/src/zenstore/workspaces.cpp
+++ b/src/zenstore/workspaces.cpp
@@ -1356,7 +1356,7 @@ TEST_CASE("workspaces.scanfolder")
{
using namespace std::literals;
- WorkerThreadPool WorkerPool(std::thread::hardware_concurrency());
+ WorkerThreadPool WorkerPool(GetHardwareConcurrency());
ScopedTemporaryDirectory TempDir;
std::filesystem::path RootPath = TempDir.Path();
@@ -1381,7 +1381,7 @@ TEST_CASE("workspace.share.paths")
{
using namespace std::literals;
- WorkerThreadPool WorkerPool(std::thread::hardware_concurrency());
+ WorkerThreadPool WorkerPool(GetHardwareConcurrency());
ScopedTemporaryDirectory TempDir;
std::filesystem::path RootPath = TempDir.Path() / "workspace";
@@ -1409,7 +1409,7 @@ TEST_CASE("workspace.share.basic")
{
using namespace std::literals;
- WorkerThreadPool WorkerPool(std::thread::hardware_concurrency());
+ WorkerThreadPool WorkerPool(GetHardwareConcurrency());
ScopedTemporaryDirectory TempDir;
std::filesystem::path RootPath = TempDir.Path() / "workspace";
@@ -1503,7 +1503,7 @@ TEST_CASE("workspace.share.alias")
{
using namespace std::literals;
- WorkerThreadPool WorkerPool(std::thread::hardware_concurrency());
+ WorkerThreadPool WorkerPool(GetHardwareConcurrency());
ScopedTemporaryDirectory TempDir;
std::filesystem::path RootPath = TempDir.Path() / "workspace";