mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-01 16:24:28 +08:00
Fixed a couple of typos
This commit is contained in:
parent
e7a468c5b7
commit
bc2b802751
@ -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(); }));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user