Hey so I have a low priority auxtask that occasionally runs to do FFTs on a bunch of audio files and some other stuff that can take some time.
I just saw that at one point where I had a lot of audio files to process, the program exited and printed:
Xenomai/cobalt: watchdog triggered
CPU time limit exceeded
As a quick solution I figured I could add usleep(5000);
in the for loop that iterates over the audio files, so that the auxtask suspends between each processed file.
I assume suspending the task like this resets a CPU time limit counter and thus lowers the chance of triggering the watchdog. Do you think I am correct in my assumption? Is there something else I might look into?