Mula-Gabriel
Mula-Gabriel
After further investigation, I identified a potentially suitable solution by leveraging the **USER_EXTENSION** mechanism. 1) To detect thread context switches, I compiled ThreadX with the **TX_ENABLE_EXECUTION_CHANGE_NOTIFY** option enabled. (On my...
I have no further questions, thank you. However, since newlib is widely used, I suggest adding this response to the documentation. Thank you again for your support.
I have just define the lock as TX_MUTEX ``` #ifndef __SINGLE_THREAD__ struct __lock { TX_MUTEX Mutex; }; ``` I add init_retarget_locks just to make thing compile, it's not called actually....
I don’t understand the point of checking whether the OS is running. If the OS isn’t running, locks are pointless: the code that tries to acquire a mutex will simply...
@amgross, under isr, you should exit with TX_CALLER_ERROR ``` /* Check for interrupt call. */ if (TX_THREAD_GET_SYSTEM_STATE() != ((ULONG) 0)) { /* Now, make sure the call is from an...