ftrias / TeensyThreads

MIT License
182 stars 26 forks source link

threadsInfo missing last thread #44

Open mariosgit opened 4 months ago

mariosgit commented 4 months ago

threadinfo should loop to thread_count+1

Because thread 0 is the main loop, ...makes it one more.

Around line 755 in TeensyThreads.cpp

char *Threads::threadsInfo(void)
...
  for (int each_thread = 0; each_thread < thread_count+1; each_thread++)
...

Just saw #38 is similar.