/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2017-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
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);
std::vector<std::thread> workers_;
};
-} // folly
+} // namespace folly