mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
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>