/* * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include "eden/fs/utils/UnboundedQueueExecutor.h" #include #include #include #include namespace facebook { namespace eden { UnboundedQueueExecutor::UnboundedQueueExecutor( size_t threadCount, folly::StringPiece threadNamePrefix) : executor_{std::make_unique( threadCount, std::make_unique>(), std::make_unique(threadNamePrefix))} {} UnboundedQueueExecutor::UnboundedQueueExecutor( std::shared_ptr executor) : executor_{std::move(executor)} {} } // namespace eden } // namespace facebook