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
The rule is that tx_mutex_get cannot be called from a non-thread context with a suspension option. This is checked for in the error checking for tx_mutex_get, namely txe_mutex_get. Error checking is enabled by default. If the application bypasses error checking it must be calling all APIs from the correct context.
As for the earlier check for thread_ptr non-NULL is to handle the call of tx_mutex_get from initialization (where thread_ptr is NULL).
The pointer
thread_ptr
is checked for null here:threadx/common/src/tx_mutex_get.c
Lines 122 to 168 in d64ef2a
But it is not checked in the following block:
threadx/common/src/tx_mutex_get.c
Lines 208 to 395 in d64ef2a
The text was updated successfully, but these errors were encountered: