~ubuntu-branches/ubuntu/lucid/jack-audio-connection-kit/lucid

« back to all changes in this revision

Viewing changes to doc/reference/html/thread_8h-source.html

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2008-12-06 11:05:15 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20081206110515-xa9v9pajr9jqvfvg
Tags: 0.115.6-1ubuntu1
* Merge from Debian unstable, remaining Ubuntu changes:
  - Redirect stderr in bash completion (Debian #504488).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
 
3
<title>JACK-AUDIO-CONNECTION-KIT: thread.h Source File</title>
 
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
 
5
<link href="tabs.css" rel="stylesheet" type="text/css">
 
6
</head><body>
 
7
<!-- Generated by Doxygen 1.5.6 -->
 
8
<h1>thread.h</h1><a href="thread_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
 
9
<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 2004 Paul Davis</span>
 
10
<a name="l00003"></a>00003 <span class="comment"></span>
 
11
<a name="l00004"></a>00004 <span class="comment">    This program is free software; you can redistribute it and/or modify</span>
 
12
<a name="l00005"></a>00005 <span class="comment">    it under the terms of the GNU Lesser General Public License as published by</span>
 
13
<a name="l00006"></a>00006 <span class="comment">    the Free Software Foundation; either version 2.1 of the License, or</span>
 
14
<a name="l00007"></a>00007 <span class="comment">    (at your option) any later version.</span>
 
15
<a name="l00008"></a>00008 <span class="comment"></span>
 
16
<a name="l00009"></a>00009 <span class="comment">    This program is distributed in the hope that it will be useful,</span>
 
17
<a name="l00010"></a>00010 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
 
18
<a name="l00011"></a>00011 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
 
19
<a name="l00012"></a>00012 <span class="comment">    GNU Lesser General Public License for more details.</span>
 
20
<a name="l00013"></a>00013 <span class="comment"></span>
 
21
<a name="l00014"></a>00014 <span class="comment">    You should have received a copy of the GNU Lesser General Public License</span>
 
22
<a name="l00015"></a>00015 <span class="comment">    along with this program; if not, write to the Free Software</span>
 
23
<a name="l00016"></a>00016 <span class="comment">    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
 
24
<a name="l00017"></a>00017 <span class="comment"></span>
 
25
<a name="l00018"></a>00018 <span class="comment">*/</span>
 
26
<a name="l00019"></a>00019 
 
27
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef __jack_thread_h__</span>
 
28
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define __jack_thread_h__</span>
 
29
<a name="l00022"></a>00022 <span class="preprocessor"></span>
 
30
<a name="l00023"></a>00023 <span class="preprocessor">#ifdef __cplusplus</span>
 
31
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
 
32
<a name="l00025"></a>00025 <span class="preprocessor">#endif</span>
 
33
<a name="l00026"></a>00026 <span class="preprocessor"></span>
 
34
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;pthread.h&gt;</span>
 
35
<a name="l00028"></a>00028 
 
36
<a name="l00029"></a>00029 <span class="comment">/* use 512KB stack per thread - the default is way too high to be feasible </span>
 
37
<a name="l00030"></a>00030 <span class="comment"> * with mlockall() on many systems */</span>
 
38
<a name="l00031"></a><a class="code" href="thread_8h.html#f9a5d6addf893be0502ae41f52e794b2">00031</a> <span class="preprocessor">#define THREAD_STACK 524288</span>
 
39
<a name="l00032"></a>00032 <span class="preprocessor"></span>       
 
40
<a name="l00051"></a>00051 <span class="keywordtype">int</span> <a class="code" href="group__ClientThreads.html#ge3329092e3c52bc4eed4e2838988cd31">jack_client_real_time_priority</a> (<a class="code" href="types_8h.html#96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a>*);
 
41
<a name="l00052"></a>00052 
 
42
<a name="l00059"></a>00059 <span class="keywordtype">int</span> <a class="code" href="group__ClientThreads.html#g770280f82a1224bc62eda53c237abd20">jack_client_max_real_time_priority</a> (<a class="code" href="types_8h.html#96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a>*);
 
43
<a name="l00060"></a>00060 
 
44
<a name="l00071"></a>00071 <span class="keywordtype">int</span> <a class="code" href="group__ClientThreads.html#gbf19c604912c46f9cceb3f707e8b5b71">jack_acquire_real_time_scheduling</a> (pthread_t thread, <span class="keywordtype">int</span> priority);
 
45
<a name="l00072"></a>00072 
 
46
<a name="l00089"></a>00089 <span class="keywordtype">int</span> <a class="code" href="group__ClientThreads.html#ga1a9078a4ca99f6f589aedacdfdf0c8d">jack_client_create_thread</a> (<a class="code" href="types_8h.html#96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a>* <a class="code" href="simple__client_8c.html#fed7053cd7bdd1cce33dec7213f340ea">client</a>,
 
47
<a name="l00090"></a>00090                                pthread_t *thread,
 
48
<a name="l00091"></a>00091                                <span class="keywordtype">int</span> priority,
 
49
<a name="l00092"></a>00092                                <span class="keywordtype">int</span> realtime,    <span class="comment">/* boolean */</span>
 
50
<a name="l00093"></a>00093                                <span class="keywordtype">void</span> *(*start_routine)(<span class="keywordtype">void</span>*),
 
51
<a name="l00094"></a>00094                                <span class="keywordtype">void</span> *arg);
 
52
<a name="l00095"></a>00095 
 
53
<a name="l00103"></a>00103 <span class="keywordtype">int</span> <a class="code" href="group__ClientThreads.html#ga89c10cd9f33257742a3869576b396db">jack_drop_real_time_scheduling</a> (pthread_t thread);
 
54
<a name="l00104"></a>00104 
 
55
<a name="l00105"></a>00105 <span class="comment">/* @} */</span>
 
56
<a name="l00106"></a>00106 
 
57
<a name="l00107"></a>00107 <span class="preprocessor">#ifdef __cplusplus</span>
 
58
<a name="l00108"></a>00108 <span class="preprocessor"></span>}
 
59
<a name="l00109"></a>00109 <span class="preprocessor">#endif</span>
 
60
<a name="l00110"></a>00110 <span class="preprocessor"></span>
 
61
<a name="l00111"></a>00111 <span class="preprocessor">#endif </span><span class="comment">/* __jack_thread_h__ */</span>
 
62
</pre></div></div>
 
63
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Nov 28 14:29:16 2008 for JACK-AUDIO-CONNECTION-KIT by&nbsp;
 
64
<a href="http://www.doxygen.org/index.html">
 
65
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
 
66
</body>
 
67
</html>