add support for setting realtime priorities of GThread
With the Linux kernel you are able to set realtime priorities of pthread_t.
In GSequencer I do something like:
#ifdef AGS_WITH_RT
if((AGS_THREAD_RT_SETUP & (g_atomic_int_get(&(thread->flags)))) == 0){
struct sched_param param;
/* Declare ourself as a real time task */
param.sched_priority = AGS_RT_PRIORITY;
if(sched_setscheduler(0, SCHED_FIFO, ¶m) == -1) {
perror("sched_setscheduler failed");
}
g_atomic_int_or(&(thread->flags),
AGS_THREAD_RT_SETUP);
}
#endif
Anyhow, I would love to to migrate AgsThread to make use of GThread instead of using pthread_t.