Skip to content

Commit

Permalink
Switch explicit CPUThreadPoolExecutor queue construction to makeDefau…
Browse files Browse the repository at this point in the history
…ltQueue()

Reviewed By: MichaelCuevas

Differential Revision: D65204935

fbshipit-source-id: 60d4b108c4a93b958746edda5040ce3820a4868f
  • Loading branch information
ot authored and facebook-github-bot committed Oct 30, 2024
1 parent 66b0e75 commit 7cbd7dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eden/common/utils/UnboundedQueueExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ std::unique_ptr<folly::CPUThreadPoolExecutor> makeExecutor(
std::unique_ptr<folly::CPUThreadPoolExecutor> executor =
std::make_unique<folly::CPUThreadPoolExecutor>(
threadCount,
std::make_unique<folly::UnboundedBlockingQueue<
folly::CPUThreadPoolExecutor::CPUTask>>(),
folly::CPUThreadPoolExecutor::makeDefaultQueue(),
std::make_unique<folly::NamedThreadFactory>(threadNamePrefix));
#ifdef EDEN_COMMON_HAVE_SERVER_OBSERVER
facebook::fb303::installThreadPoolExecutorCounters("", *executor);
Expand Down

0 comments on commit 7cbd7dc

Please sign in to comment.