mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
5d54a799c9
Summary: To improve the determinism of our C++ tests, I am planning to switch TestMount to a ManualExecutor. This adds a ManualExecutor constructor to UnboundedQueueExecutor. In Rust, I'd use a trait, but a simple class with two constructors works fine. Reviewed By: strager Differential Revision: D8846553 fbshipit-source-id: c52752105255503d26f1e65494c32b3f62882e44
25 lines
643 B
C++
25 lines
643 B
C++
/*
|
|
* 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.
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include "eden/fs/utils/UnboundedQueueExecutor.h"
|
|
|
|
namespace facebook {
|
|
namespace eden {
|
|
|
|
// The Eden CPU thread pool is intended for miscellaneous background tasks.
|
|
class EdenCPUThreadPool : public UnboundedQueueExecutor {
|
|
public:
|
|
explicit EdenCPUThreadPool();
|
|
};
|
|
|
|
} // namespace eden
|
|
} // namespace facebook
|