add a bitarray into struct osThreadDef_t to indicate whether the thread is used or not, then we can get the first available thread by searching this array when creating a new thread, and update this array to add a free thread when terminating a thread. Signed-off-by: Chen Peng1 <peng1.chen@intel.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| cmsis_kernel.c | ||
| cmsis_mailq.c | ||
| cmsis_mempool.c | ||
| cmsis_msgq.c | ||
| cmsis_mutex.c | ||
| cmsis_semaphore.c | ||
| cmsis_signal.c | ||
| cmsis_thread.c | ||
| cmsis_timer.c | ||
| cmsis_wait.c | ||
| Kconfig | ||