How to Suspend and Resume a Thread created using Iot_CreateDetachedThread?

Can you not use xTaskCreate instead of Iot_CreateDetachedThread? The last parameter of xTaskCreate is an output parameter to receive the created task’s handle.

Thanks.