How to Suspend and Resume a Thread created using Iot_CreateDetachedThread?

0

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

bool Iot_CreateDetachedThread( IotThreadRoutine_t threadRoutine,
                               void * pArgument,
                               int32_t priority,
                               size_t stackSize )

Questions relating to the Thread created are:

  1. How to get the Thread Handle of this Thread for using with FreeRTOS API?

  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/latest/lib-ref/c-sdk/main/index.html
  2. Iot_CreateDetachedThread - https://docs.aws.amazon.com/freertos/latest/lib-ref/c-sdk/platform/platform_threads_function_createdetachedthread.html

Thanks | Regards,
Dipen

질문됨 4년 전211회 조회
1개 답변
0

Namaste Forum Member,

Please refer the below the FreeRTOS forum link for this same query posted and, the discussions carried out.
https://forums.freertos.org/t/how-to-suspend-and-resume-a-thread-created-using-iot-createdetachedthread/10204

Thanks | Regards,
Dipen

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠