Static thread controller#13
Conversation
| ``` | ||
| or | ||
| ```c++ | ||
| // Instantiate a new StaticThreadController |
There was a problem hiding this comment.
"Instantiate a new StaticThreadController with the number of threads to be supplied"
|
Nice work! Thanks for contributing. Thanks |
|
Thanks for feedback, seems like I should revise my initial idea and do some adjustments in the code. |
|
Static version is more efficient even if it holds 15 threads, because it "adds" threads to the array at compile time. It may save about 200-300 byte of memory. Just replaced Threads with Thread* and did the measurements. |
|
Thank you very much @CAHEK7! Just published the version. https://github.com/ivanseidel/ArduinoThread/releases/tag/2.1.0 Bumped from 2.0.3 to 2.1.0 as it includes new features. |
This is suggested solution for #6.