jack.c.thread

Undocumented in source.

Public Imports

jack.c.systemdeps
public import jack.c.systemdeps;
Undocumented in source.
jack.c.types
public import jack.c.types;
Undocumented in source.

Members

Aliases

jack_thread_creator_t
alias jack_thread_creator_t = int function(pthread_t*, const(pthread_attr_t)*, void* function(void*), void* arg)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

jack_acquire_real_time_scheduling
int jack_acquire_real_time_scheduling(jack_native_thread_t thread, int priority)

Attempt to enable realtime scheduling for a thread. On some systems that may require special privileges.

jack_client_create_thread
int jack_client_create_thread(jack_client_t* client, jack_native_thread_t* thread, int priority, int realtime, void* function(void*) start_routine, void* arg)

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.

jack_client_kill_thread
int jack_client_kill_thread(jack_client_t* client, jack_native_thread_t thread)

Kill the thread.

jack_client_max_real_time_priority
int jack_client_max_real_time_priority(jack_client_t* )

@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.

jack_client_real_time_priority
int jack_client_real_time_priority(jack_client_t* )

@returns if JACK is running with realtime scheduling, this returns the priority that any JACK-created client threads will run at. Otherwise returns -1.

jack_client_stop_thread
int jack_client_stop_thread(jack_client_t* client, jack_native_thread_t thread)

Stop the thread, waiting for the thread handler to terminate.

jack_drop_real_time_scheduling
int jack_drop_real_time_scheduling(jack_native_thread_t thread)

Drop realtime scheduling for a thread.

jack_set_thread_creator
void jack_set_thread_creator(jack_thread_creator_t creator)

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.

Manifest constants

THREAD_STACK
enum THREAD_STACK;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta