This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC2340R5: pthread_attr_setstack()、为什么 appTaskStack 地址为空?

Guru**** 2558250 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1571873/cc2340r5-pthread_attr_setstack-why-the-apptaskstack-address-is-null

器件型号:CC2340R5


工具/软件:

您好、

在 BLEAppUtil_createBLEAppUtilTask() 中、 pthread_attr_setstack() 的第二个参数是 appTaskStack、值为 NULL。

为什么堆栈地址为 NULL、是正确的吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、James:

    所以在查看 pthread.c 源时、我们看到 pthread_create/xTaskCreate 从未触及此 stackaddr 参数、因此只需要 stacksize 参数。  因此、您可能 会改用 pthread_attr_setstacksize、但重点是最终结果应该相同。

    此致、
    Ryan