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 #ifdef WIN32
00029 #include <windows.h>
00030 typedef HANDLE pthread_t;
00031 #else
00032 #include <pthread.h>
00033 #endif
00034
00035
00053 int jack_acquire_real_time_scheduling (pthread_t thread, int priority);
00054
00071 int jack_client_create_thread (jack_client_t* client,
00072 pthread_t *thread,
00073 int priority,
00074 int realtime,
00075 void *(*start_routine)(void*),
00076 void *arg);
00077
00085 int jack_drop_real_time_scheduling (pthread_t thread);
00086
00087 #ifdef __cplusplus
00088 }
00089 #endif
00090
00091 #endif