Control the number of threads in TestExecutor
[folly.git] / folly / futures / test / TestExecutor.h
index c09713bef7fadd31332767c1baed6bc68b011c3e..f022bc036c6a985f44847e03a79daace396a9959 100644 (file)
@@ -29,13 +29,13 @@ namespace folly {
  */
 class TestExecutor : public Executor {
  public:
-  TestExecutor();
+  explicit TestExecutor(size_t numThreads);
 
   ~TestExecutor() override;
 
   void add(Func f) override;
 
-  uint32_t numThreads() const;
+  size_t numThreads() const;
 
  private:
   void addImpl(Func f);