Rename mjMAXTHREADS -> mjMAXTHREAD (consistency).
PiperOrigin-RevId: 599130235 Change-Id: Ia80379b8ae0574a7cd8fbc668657f806e90d6c5c
This commit is contained in:
committed by
Copybara-Service
parent
71b0561758
commit
67a00a3a51
@@ -65,7 +65,7 @@ class ThreadPoolImpl : public mjThreadPool {
|
||||
public:
|
||||
ThreadPoolImpl(int num_worker) : mjThreadPool{num_worker} {
|
||||
// initialize worker threads
|
||||
for (int i = 0; i < std::min(num_worker, mjMAXTHREADS); ++i) {
|
||||
for (int i = 0; i < std::min(num_worker, mjMAXTHREAD); ++i) {
|
||||
WorkerThread worker{
|
||||
std::make_unique<std::thread>(ThreadPoolWorker, this, i)};
|
||||
workers_.push_back(std::move(worker));
|
||||
|
||||
Reference in New Issue
Block a user