We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
if I use several threads in RTX V5 I can pass control to another thread if I call a function like osDelay(), osThreadYield() etc.
If the thread does not pass control to another thread, the round-robin-timeout passes control to another thread.
Can I trigger on such a round-robin-timeout event?
Thank you.
If you want to go along this path, here are some options.
1) You can build the OS with Debug, link this library and add the source to your project (no need to build it) and put a break point in the code that does the does the Round Robin Preemption
2) There are 3 calls to EvrRtxThreadPreempted(). 1 is in the Round Robin Code, 1 in ThreadBlock and 1 in threadYield. Remove the ones in ThreadBlock and ThreadYield. This will mean that any ThreadPreempted will now only be for Round Robin.
Thanks a lot for this hints.Option 1) sounds good.
I will try to add an EventRecorder entry in the code when the RoundRobin Preemtion is done.