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.

CC2652P: sspMMOHash not thread-safe

Part Number: CC2652P

My customer is calling Zstackapi_bdbSetActiveCentralizedLinkKeyReq from a seperate task in their application, and found that the program hangs at sspMMOHash in bdb_addInstallCode. They tried adjusting the priority of the task, and also tried calling bdb_setActiveCentralizedLinkKey instead of Zstackapi_bdbSetActiveCentralizedLinkKeyReq, but both could not make it work.

It looks the sspMMOHash function is not thread-safe, and when there is multiple tasks, it will be interrupted by other tasks and never return. How can I make this function thread-safe to avoid being interrupted?

Best regards,

Shuyang