I want to make a watchdog program that can run in userspace. It would consist of a lower priority thread that pings a high priority thread, and if the high priority thread doesn't receive its message it will shut down the application and log the error. I want to make it aware of the thread that hung up, however. The only way I can think of is to keep a list of all threads and every so often iterate over all of them and compare the time spent in primary mode executing code. However, this is kind of nasty. I wonder if there's a better way.
The xenomai watchdog doesn't seem to know which thread is causing the issue, but I didn't find any docs for it so I'm only going off what I see in the code. Does anyone have any ideas on how to do this? Thanks, Steven
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
