00001 /* 00002 Copyright (C) 2004 Paul Davis 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU Lesser General Public License as published by 00006 the Free Software Foundation; either version 2.1 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU Lesser General Public License for more details. 00013 00014 You should have received a copy of the GNU Lesser General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 00018 $Id: thread.h,v 1.3 2004/09/15 16:56:04 joq Exp $ 00019 */ 00020 00021 #ifndef __jack_thread_h__ 00022 #define __jack_thread_h__ 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 #include <pthread.h> 00029 00047 int jack_acquire_real_time_scheduling (pthread_t thread, int priority); 00048 00064 int jack_create_thread (pthread_t *thread, 00065 int priority, 00066 int realtime, /* boolean */ 00067 void *(*start_routine)(void*), 00068 void *arg); 00069 00077 int jack_drop_real_time_scheduling (pthread_t thread); 00078 00079 #ifdef __cplusplus 00080 } 00081 #endif 00082 00083 #endif /* __jack_thread_h__ */