thread.h
Go to the documentation of this file.
/*
Copyright (C) 2004 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __jack_thread_h__
#define __jack_thread_h__
#ifdef __cplusplus
extern "C"
{
#endif
#include <jack/systemdeps.h>
#include <jack/weakmacros.h>
/* use 512KB stack per thread - the default is way too high to be feasible
* with mlockall() on many systems */
#define THREAD_STACK 524288
int jack_client_real_time_priority (jack_client_t*) JACK_OPTIONAL_WEAK_EXPORT;
int jack_client_max_real_time_priority (jack_client_t*) JACK_OPTIONAL_WEAK_EXPORT;
int jack_acquire_real_time_scheduling (jack_native_thread_t thread, int priority) JACK_OPTIONAL_WEAK_EXPORT;
int jack_client_create_thread (jack_client_t* client,
jack_native_thread_t *thread,
int priority,
int realtime, /* boolean */
void *(*start_routine)(void*),
void *arg) JACK_OPTIONAL_WEAK_EXPORT;
int jack_drop_real_time_scheduling (jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT;
int jack_client_stop_thread(jack_client_t* client, jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT;
int jack_client_kill_thread(jack_client_t* client, jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT;
#ifndef _WIN32
typedef int (*jack_thread_creator_t)(pthread_t*,
const pthread_attr_t*,
void* (*function)(void*),
void* arg);
void jack_set_thread_creator (jack_thread_creator_t creator) JACK_OPTIONAL_WEAK_EXPORT;
#endif
/* @} */
#ifdef __cplusplus
}
#endif
#endif /* __jack_thread_h__ */
jack_client_real_time_priority
int jack_client_real_time_priority(jack_client_t *) JACK_OPTIONAL_WEAK_EXPORT
Definition: JackAPI.cpp:1709
jack_client_stop_thread
int jack_client_stop_thread(jack_client_t *client, jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT
Definition: JackAPI.cpp:1766
jack_acquire_real_time_scheduling
int jack_acquire_real_time_scheduling(jack_native_thread_t thread, int priority) JACK_OPTIONAL_WEAK_EXPORT
Definition: JackAPI.cpp:1737
jack_client_max_real_time_priority
int jack_client_max_real_time_priority(jack_client_t *) JACK_OPTIONAL_WEAK_EXPORT
Definition: JackAPI.cpp:1723
jack_set_thread_creator
void jack_set_thread_creator(jack_thread_creator_t creator) JACK_OPTIONAL_WEAK_EXPORT
Definition: JackAPI.cpp:1779
jack_client_create_thread
int jack_client_create_thread(jack_client_t *client, jack_native_thread_t *thread, int priority, int realtime, void *(*start_routine)(void *), void *arg) JACK_OPTIONAL_WEAK_EXPORT
Definition: JackAPI.cpp:1745
jack_drop_real_time_scheduling
int jack_drop_real_time_scheduling(jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT
Definition: JackAPI.cpp:1761
jack_client_kill_thread
int jack_client_kill_thread(jack_client_t *client, jack_native_thread_t thread) JACK_OPTIONAL_WEAK_EXPORT
Definition: JackAPI.cpp:1772