ARM-software / CMSIS-FreeRTOS

FreeRTOS adaptation for CMSIS-RTOS Version 2

Home Page:https://arm-software.github.io/CMSIS-FreeRTOS/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can CMSIS based thread support osThreadJoinable mode?

rameble opened this issue · comments

I notice that CMSIS based thread only support osThreadDetached mode. I don't know why? Is it the system limitation or another reason?
How can I support both osThreadJoinable and osThreadDetached?

Thanks a lot.

Hi,

the problem is that FreeRTOS does not support thread join operation. Joining a thread means to wait for it to complete i.e. block the thread that is currently executing until another thread completes its execution. One would need FreeRTOS API to implement such behavior but since it does not exist it is not implemented in RTOS2 wrapper for FreeRTOS (as documented, see Limitations).

Hope this answers the question.