Skip to main content
Rob.Riggs
Senior
Apr 18, 2021 8:10 PM UTC
Solved

What is the CMSIS-RTOS v2 replacement for osThreadSuspendAll()?

Trying to port my code to CMSIS-RTOS v2 and running into some missing functionality. I don't see an osThreadSuspendAll() replacement.

This topic has been closed for replies.
Pavel A.
Pavel A.Best answer
Apr 18, 2021 10:57 PM UTC

It looks like osKernelLock()

3 replies

Pavel A.
Pavel A.Best answer
Apr 18, 2021 10:57 PM UTC

It looks like osKernelLock()

Walid ZRELLI
Visitor II
Apr 19, 2021 2:00 PM UTC

Hello @Rob.Riggs​ ,

To migrate to CMSIS-RTOS v2, I advise you to consult the following link : Migration Guide

moreover, you will find all the differences between the API functions in this reference : Detailed API Function Differences

I hope this helps!

Best Regards,

Walid

Rob.Riggs
Rob.RiggsAuthor
Senior
Apr 25, 2021 3:24 AM UTC

Thank you. I am finding that migration guide rather lacking. I have consulted it. Searching for osThreadSuspendAll returns no results. It is not referenced on that page. There are a number of CMSIS-OS v1 functions that have no migration information and for which I just ended up having to use the underlying FreeRTOS functions.