Fixed a couple of typos

This commit is contained in:
Benoit Steiner 2016-03-22 14:27:34 -07:00
parent e7a468c5b7
commit bc2b802751

View File

@ -27,7 +27,7 @@ class ThreadPoolInterface {
class ThreadPool : public ThreadPoolInterface { class ThreadPool : public ThreadPoolInterface {
public: public:
// Construct a pool that contains "num_threads" threads. // Construct a pool that contains "num_threads" threads.
explicit ThreadPool(int num_threads) : threads_(num_threads), waiting_(num_threads) { explicit ThreadPool(int num_threads) : threads_(num_threads, NULL), waiting_(num_threads, NULL) {
for (int i = 0; i < num_threads; i++) { for (int i = 0; i < num_threads; i++) {
threads_.push_back(new std::thread([this]() { WorkerLoop(); })); threads_.push_back(new std::thread([this]() { WorkerLoop(); }));
} }