Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __jack_thread_h__
00021 #define __jack_thread_h__
00022
00023 #ifdef __cplusplus
00024 extern "C"
00025 {
00026 #endif
00027
00028 #include <jack/systemdeps.h>
00029 #include <jack/weakmacros.h>
00030
00031
00032
00033 #define THREAD_STACK 524288
00034
00053 int jack_client_real_time_priority (jack_client_t*) JACK_OPTIONAL_WEAK_EXPORT;
00054
00061 int jack_client_max_real_time_priority (jack_client_t*) JACK_OPTIONAL_WEAK_EXPORT;
00062
00073 int jack_acquire_real_time_scheduling (jack_native_thread_t thread, int priority) JACK_OPTIONAL_WEAK_EXPORT;
00074
00091 int jack_client_create_thread (jack_client_t* client,
00092 jack_native_thread_t *thread,
00093 int priority,
00094 int realtime,
00095 void *(*start_routine)(void*),
00096 void *arg) JACK_OPTIONAL_WEAK_EXPORT;
00097
00105 int jack_drop_real_time_scheduling (jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT;
00106
00114 int jack_client_stop_thread(jack_client_t* client, jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT;
00115
00123 int jack_client_kill_thread(jack_client_t* client, jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT;
00124
00125 #ifndef WIN32
00126
00127 typedef int (*jack_thread_creator_t)(pthread_t*,
00128 const pthread_attr_t*,
00129 void* (*function)(void*),
00130 void* arg);
00150 void jack_set_thread_creator (jack_thread_creator_t creator) JACK_OPTIONAL_WEAK_EXPORT;
00151
00152 #endif
00153
00154
00155
00156 #ifdef __cplusplus
00157 }
00158 #endif
00159
00160 #endif