How to Suspend and Resume a Thread created using Iot_CreateDetachedThread?

dipen@1337lab.io
Posts: 12
Joined: Wed Jan 29, 2020 8:45 am

How to Suspend and Resume a Thread created using Iot_CreateDetachedThread?

Postby dipen@1337lab.io » Wed Jul 08, 2020 1:57 am

Namaste Forum Member,

My development environment comprises of ESP32 DevKitC and Amazon FreeRTOS.

For Thread creation, I'm using the Iot_CreateDetachedThread function offered by the AWS IoT Device SDK C, which has the below syntax.

  1. bool Iot_CreateDetachedThread( IotThreadRoutine_t threadRoutine,
  2.                                void * pArgument,
  3.                                int32_t priority,
  4.                                size_t stackSize )

Questions relating to the Thread created are:

1) How to get the Thread Handle of this Thread for using with FreeRTOS APIs?
2) How to Suspend and Resume this Thread, similar to the FreeRTOS APIs vTaskSuspend() and vTaskResume()?


Reference Links:
1) AWS IoT Device SDK C - https://docs.aws.amazon.com/freertos/la ... index.html
2) Iot_CreateDetachedThread - https://docs.aws.amazon.com/freertos/la ... hread.html

Thanks | Regards,
Dipen

dipen@1337lab.io
Posts: 12
Joined: Wed Jan 29, 2020 8:45 am

Re: How to Suspend and Resume a Thread created using Iot_CreateDetachedThread?

Postby dipen@1337lab.io » Mon Jul 13, 2020 1:13 pm

Namaste Forum Member,

Please refer the below FreeRTOS forum link for this same query posted and, the discussions carried out.
https://forums.freertos.org/t/how-to-su ... read/10204

Thanks | Regards,
Dipen

Who is online

Users browsing this forum: No registered users and 32 guests