From 7cbd7dc1a508223adc2dbde4402cdecaa8d0eebf Mon Sep 17 00:00:00 2001 From: Giuseppe Ottaviano Date: Wed, 30 Oct 2024 16:25:28 -0700 Subject: [PATCH] Switch explicit CPUThreadPoolExecutor queue construction to makeDefaultQueue() Reviewed By: MichaelCuevas Differential Revision: D65204935 fbshipit-source-id: 60d4b108c4a93b958746edda5040ce3820a4868f --- eden/common/utils/UnboundedQueueExecutor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eden/common/utils/UnboundedQueueExecutor.cpp b/eden/common/utils/UnboundedQueueExecutor.cpp index 454280e..ad8b06c 100644 --- a/eden/common/utils/UnboundedQueueExecutor.cpp +++ b/eden/common/utils/UnboundedQueueExecutor.cpp @@ -28,8 +28,7 @@ std::unique_ptr makeExecutor( std::unique_ptr executor = std::make_unique( threadCount, - std::make_unique>(), + folly::CPUThreadPoolExecutor::makeDefaultQueue(), std::make_unique(threadNamePrefix)); #ifdef EDEN_COMMON_HAVE_SERVER_OBSERVER facebook::fb303::installThreadPoolExecutorCounters("", *executor);