RT priority 99 on soundcard
Is running on top of soundcard with realtime priority 99 problematic?
/* and now async */
{
static const struct timespec req = {
0,
(250000000 * (1 / 45)), };
if(!AGS_IS_DEVOUT_THREAD(thread)){
nanosleep(&req, NULL); }
}
Quoted 1 line · Joël Krähemann
Is running on top of soundcard with realtime priority 99 problematic?
If that thread ever goes into an infinite loop, you won't be able to stop it easily.
Please note that priorities are relative, i.e., your thread's priority needs to be higher than that of any other thread that you want to be able to interrupt, but less than that of a more important thread. How to order the specific threads on your particular system is your own decision.
Regards,
Clemens