Rename mjMAXTHREADS -> mjMAXTHREAD (consistency).

PiperOrigin-RevId: 599130235
Change-Id: Ia80379b8ae0574a7cd8fbc668657f806e90d6c5c
This commit is contained in:
Yuval Tassa
2024-01-17 04:33:00 -08:00
committed by Copybara-Service
parent 71b0561758
commit 67a00a3a51
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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));