In the scheduler, there is a call to _tx_execution_thread_enter (if TX_EXECUTION_PROFILE_ENABLE is defined). This is normally used by the execution profile kit (https://github.com/azure-rtos/threadx/tree/master/utility/execution_profile_kit), but you can call your own function there or write a new _tx_execution_thread_enter function.
How to be notified each time a thread is executed?
how can I be notified when a thread in ready state starts to be executed without modifying pre-certified code of Azure RTOS ThreadX?
I've defined TX_THREAD_STATE_CHANGE in tx_port.h but it is not enough as it doesn't exist a TX_EXECUTING state, I need something like that anyway.
@adita Wanted to follow up with you to understand whether the below information helped. Please let us know if there are any other queries.
If below suggestions answers your query, do click
Up-Votefor the same. And, if you have any further query do let us know.
@AshokPeddakotla-MSFT Yes, it helped, thank you!
Sign in to comment