summaryrefslogtreecommitdiff
path: root/common/jack/thread.h
diff options
context:
space:
mode:
authorsletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2010-01-29 16:49:35 +0000
committersletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2010-01-29 16:49:35 +0000
commit246becdeb2e9b889930a09545c9a9697cc1caa9a (patch)
treeb2a837dd7f174726028d777a98d5024a81d96f3a /common/jack/thread.h
parent6f9ee03099a450a79b51dfe7d2533e83131d83c7 (diff)
downloadjack2-246becdeb2e9b889930a09545c9a9697cc1caa9a.tar.gz
More weak stuff in public headers.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3895 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'common/jack/thread.h')
-rw-r--r--common/jack/thread.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/common/jack/thread.h b/common/jack/thread.h
index 48adf084..5d002afa 100644
--- a/common/jack/thread.h
+++ b/common/jack/thread.h
@@ -26,6 +26,7 @@ extern "C"
#endif
#include <jack/systemdeps.h>
+#include <jack/weakmacros.h>
/** @file thread.h
*
@@ -45,7 +46,7 @@ extern "C"
* Otherwise returns -1.
*/
-int jack_client_real_time_priority (jack_client_t*);
+int jack_client_real_time_priority (jack_client_t*) JACK_OPTIONAL_WEAK_EXPORT;
/**
* @returns if JACK is running with realtime scheduling, this returns
@@ -53,7 +54,7 @@ int jack_client_real_time_priority (jack_client_t*);
* is subject to realtime scheduling. Otherwise returns -1.
*/
-int jack_client_max_real_time_priority (jack_client_t*);
+int jack_client_max_real_time_priority (jack_client_t*) JACK_OPTIONAL_WEAK_EXPORT;
/**
* Attempt to enable realtime scheduling for a thread. On some
@@ -65,7 +66,7 @@ int jack_client_max_real_time_priority (jack_client_t*);
* @returns 0, if successful; EPERM, if the calling process lacks
* required realtime privileges; otherwise some other error number.
*/
-int jack_acquire_real_time_scheduling (pthread_t thread, int priority);
+int jack_acquire_real_time_scheduling (pthread_t thread, int priority) JACK_OPTIONAL_WEAK_EXPORT;
/**
* Create a thread for JACK or one of its clients. The thread is
@@ -88,7 +89,7 @@ int jack_client_create_thread (jack_client_t* client,
int priority,
int realtime, /* boolean */
void *(*start_routine)(void*),
- void *arg);
+ void *arg) JACK_OPTIONAL_WEAK_EXPORT;
/**
* Drop realtime scheduling for a thread.
@@ -97,7 +98,7 @@ int jack_client_create_thread (jack_client_t* client,
*
* @returns 0, if successful; otherwise an error number.
*/
-int jack_drop_real_time_scheduling (pthread_t thread);
+int jack_drop_real_time_scheduling (pthread_t thread) JACK_OPTIONAL_WEAK_EXPORT;
/**
* Stop the thread, waiting for the thread handler to terminate.
@@ -106,7 +107,7 @@ int jack_drop_real_time_scheduling (pthread_t thread);
*
* @returns 0, if successful; otherwise an error number.
*/
-int jack_client_stop_thread(jack_client_t* client, pthread_t thread);
+int jack_client_stop_thread(jack_client_t* client, pthread_t thread) JACK_OPTIONAL_WEAK_EXPORT;
/**
* Cancel the thread then waits for the thread handler to terminate.
@@ -115,7 +116,7 @@ int jack_client_stop_thread(jack_client_t* client, pthread_t thread);
*
* @returns 0, if successful; otherwise an error number.
*/
- int jack_client_kill_thread(jack_client_t* client, pthread_t thread);
+ int jack_client_kill_thread(jack_client_t* client, pthread_t thread) JACK_OPTIONAL_WEAK_EXPORT;
#ifndef WIN32
@@ -142,7 +143,7 @@ int jack_client_stop_thread(jack_client_t* client, pthread_t thread);
* @param creator a function that creates a new thread
*
*/
-void jack_set_thread_creator (jack_thread_creator_t creator);
+void jack_set_thread_creator (jack_thread_creator_t creator) JACK_OPTIONAL_WEAK_EXPORT;
#endif