Attempt to enable realtime scheduling for a thread. On some systems that may require special privileges.
Create a thread for JACK or one of its clients. The thread is created executing @a start_routine with @a arg as its sole argument.
Kill the thread.
@returns if JACK is running with realtime scheduling, this returns the maximum priority that a JACK client thread should use if the thread is subject to realtime scheduling. Otherwise returns -1.
@returns if JACK is running with realtime scheduling, this returns the priority that any JACK-created client threads will run at. Otherwise returns -1.
Stop the thread, waiting for the thread handler to terminate.
Drop realtime scheduling for a thread.
This function can be used in very very specialized cases where it is necessary that client threads created by JACK are created by something other than pthread_create(). After it is used, any threads that JACK needs for the client will will be created by calling the function passed to this function.