Skip to content
Commit 0f63d113 authored by Peng Chen's avatar Peng Chen Committed by Anas Nashif
Browse files

cmsis_rtos_v1: fix thread instances management.



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: default avatarChen Peng1 <peng1.chen@intel.com>
parent 40f4091d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment