On Fri, 30 Dec 2005 11:54:56 -0500
Paul Davis <paul@email-addr-hidden> wrote:
> you don't know the correct priority to use. i imagine an api along the
> lines of:
true.
>
> jack_create_thread (pthread_t*, void* (thread_function)(void*),
> void* arg, int relative_to_jack);
>
> the last argument would specify that the thread should run at, above or
> below the jack RT thread(s) by a given amount. typical values would be
> +1, 0, -1 etc.
Why not simply
/*
* returns the priority (1-99) of the jack main loop (which is already one
* above the clients' process() threads or 0 if not realtime. Clients having
* a midi handling thread should create it with a priority at least one
* above the return value of this function.
*/
int jack_get_rt_priority();
Then the app can decide itself about how to create the thread.
> > Agreed. why not make it prio 98 by default then? (system timer should
> > still be higher i suppose). With a difference of only 10 between main
> > jack loop and the watchdog, it might get a little crowded :)
>
> good point.
OTOH, i'm not really sure if 9 priority levels isn't enough. It seems
one above jacks main thread should be good enough for most midi purposes.
Flo
-- Palimm Palimm! http://tapas.affenbande.orgReceived on Fri Dec 30 20:15:12 2005
This archive was generated by hypermail 2.1.8 : Fri Dec 30 2005 - 20:15:12 EET