You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PlatformMutex_Lock( &pContext->PktRespMutex ); // It gets the Mutex however, the API doesn't have return value. So, the code cannot check timeout.
pContext->cbEvents.networkRegistrationCallback = networkRegistrationCallback;
pContext->cbEvents.pNetworkRegistrationCallbackContext = pCallbackContext;
PlatformMutex_Unlock( &pContext->PktRespMutex );
Does it nerver happnened?
The text was updated successfully, but these errors were encountered:
Hi @KeitaKashima,
The PktRespMutex is used to protect the cellular context which can be accessed by the pktio thread and the application thread. The code with the mutex held should not block indefinitely, and no timeout is expected with the mutex lock operation. You can reference the example implementation in this file.
Hi, I wonder the system would be locked or not work properly if PlatformMutex_Lock API cannot get Mutex or happened the timeout of Mutex.
FreeRTOS-Cellular-Interface/source/cellular_common_api.c
Line 211 in ccbd0fc
Does it nerver happnened?
The text was updated successfully, but these errors were encountered: