openjpeg/doxygen/thread_8h_source.html

86 lines
31 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenJPEG: thread.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OpenJPEG
&#160;<span id="projectnumber">2.3.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d522931ffa1371640980b621734a4381.html">Users</a></li><li class="navelem"><a class="el" href="dir_694e20c96f4fc1be4aed4f026eadce94.html">antonin</a></li><li class="navelem"><a class="el" href="dir_3ca1ad36e65e03f9e8d67ddc2553765b.html">dev</a></li><li class="navelem"><a class="el" href="dir_181a881edfcb8646dab693a228fa6bde.html">opj</a></li><li class="navelem"><a class="el" href="dir_5064bb5511811c3176850b7e47443f14.html">github</a></li><li class="navelem"><a class="el" href="dir_0b20524d8f8835ca75acc430451c8412.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_e3f8a8e294f8271ee71cbcf3c2acacc1.html">src</a></li><li class="navelem"><a class="el" href="dir_da83fe5fdfb6c4554d36abffc03790ad.html">lib</a></li><li class="navelem"><a class="el" href="dir_68013e83e260d17d49dee5e209315608.html">openjp2</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">thread.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="thread_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * The copyright in this software is being made available under the 2-clauses</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * BSD License, included below. This software may be subject to other third</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * party and contributor rights, including patent rights, and no such rights</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * are granted under this license.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Copyright (c) 2016, Even Rouault</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * are met:</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * 1. Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS&#39;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#ifndef THREAD_H</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#define THREAD_H</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="openjpeg_8h.html">openjpeg.h</a>&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group___t_h_r_e_a_d.html#ga29120af1ce48d5ecd651795f2e427755"> 52</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group___t_h_r_e_a_d.html#ga29120af1ce48d5ecd651795f2e427755">opj_mutex_t</a> <a class="code" href="group___t_h_r_e_a_d.html#ga29120af1ce48d5ecd651795f2e427755">opj_mutex_t</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<a class="code" href="group___t_h_r_e_a_d.html#ga29120af1ce48d5ecd651795f2e427755">opj_mutex_t</a>* <a class="code" href="group___t_h_r_e_a_d.html#gaa81ea27e801a8c0cf453b256ab38e067">opj_mutex_create</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___t_h_r_e_a_d.html#gab38a90b92a1d294f7e1886e36a405518">opj_mutex_lock</a>(<a class="code" href="group___t_h_r_e_a_d.html#ga29120af1ce48d5ecd651795f2e427755">opj_mutex_t</a>* mutex);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___t_h_r_e_a_d.html#gacf1f5a5f7f7257663505af02b717272c">opj_mutex_unlock</a>(<a class="code" href="group___t_h_r_e_a_d.html#ga29120af1ce48d5ecd651795f2e427755">opj_mutex_t</a>* mutex);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___t_h_r_e_a_d.html#ga66757c34c788b873ad9acfb60a5e008b">opj_mutex_destroy</a>(<a class="code" href="group___t_h_r_e_a_d.html#ga29120af1ce48d5ecd651795f2e427755">opj_mutex_t</a>* mutex);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="group___t_h_r_e_a_d.html#ga439cd27c17f11fc56a911a126811fb87"> 81</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group___t_h_r_e_a_d.html#ga439cd27c17f11fc56a911a126811fb87">opj_cond_t</a> <a class="code" href="group___t_h_r_e_a_d.html#ga439cd27c17f11fc56a911a126811fb87">opj_cond_t</a>;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<a class="code" href="group___t_h_r_e_a_d.html#ga439cd27c17f11fc56a911a126811fb87">opj_cond_t</a>* <a class="code" href="group___t_h_r_e_a_d.html#ga7f8a4c1ce6d9ad2dde1d293fad317522">opj_cond_create</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___t_h_r_e_a_d.html#ga6edf64f08cd0b48299800852d52245d6">opj_cond_wait</a>(<a class="code" href="group___t_h_r_e_a_d.html#ga439cd27c17f11fc56a911a126811fb87">opj_cond_t</a>* cond, <a class="code" href="group___t_h_r_e_a_d.html#ga29120af1ce48d5ecd651795f2e427755">opj_mutex_t</a>* mutex);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___t_h_r_e_a_d.html#ga0f3687b35d6f3c395e1156a8499d1632">opj_cond_signal</a>(<a class="code" href="group___t_h_r_e_a_d.html#ga439cd27c17f11fc56a911a126811fb87">opj_cond_t</a>* cond);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___t_h_r_e_a_d.html#gafba4c2356f6d070d43e5f0d5c71fdbee">opj_cond_destroy</a>(<a class="code" href="group___t_h_r_e_a_d.html#ga439cd27c17f11fc56a911a126811fb87">opj_cond_t</a>* cond);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="group___t_h_r_e_a_d.html#gaed72b7b75acb6eaeb620085b01ee365b"> 141</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group___t_h_r_e_a_d.html#gaed72b7b75acb6eaeb620085b01ee365b">opj_thread_t</a> <a class="code" href="group___t_h_r_e_a_d.html#gaed72b7b75acb6eaeb620085b01ee365b">opj_thread_t</a>;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="group___t_h_r_e_a_d.html#gae5f9aa8219645e0e836aaf0c453db624"> 146</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="group___t_h_r_e_a_d.html#gae5f9aa8219645e0e836aaf0c453db624">opj_thread_fn</a>)(<span class="keywordtype">void</span>* user_data);</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;<a class="code" href="group___t_h_r_e_a_d.html#gaed72b7b75acb6eaeb620085b01ee365b">opj_thread_t</a>* <a class="code" href="group___t_h_r_e_a_d.html#ga541be683ba651c8244bde3f0d3650c92">opj_thread_create</a>(<a class="code" href="group___t_h_r_e_a_d.html#gae5f9aa8219645e0e836aaf0c453db624">opj_thread_fn</a> thread_fn, <span class="keywordtype">void</span>* user_data);</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___t_h_r_e_a_d.html#gad49986b56da75f8609b7c940c17f713f">opj_thread_join</a>(<a class="code" href="group___t_h_r_e_a_d.html#gaed72b7b75acb6eaeb620085b01ee365b">opj_thread_t</a>* thread);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;</div><div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="group___t_h_r_e_a_d.html#ga9395f97b1e62916dc8b5d2ea4749f74a"> 167</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structopj__tls__t.html">opj_tls_t</a> <a class="code" href="structopj__tls__t.html">opj_tls_t</a>;</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;<span class="keywordtype">void</span>* <a class="code" href="group___t_h_r_e_a_d.html#ga90caa0ff9c1e54033ef1e3010faf03a9">opj_tls_get</a>(<a class="code" href="structopj__tls__t.html">opj_tls_t</a>* tls, <span class="keywordtype">int</span> key);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="group___t_h_r_e_a_d.html#ga38f8cdfd288c8ff8963444403549ad6c"> 177</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="group___t_h_r_e_a_d.html#ga38f8cdfd288c8ff8963444403549ad6c">opj_tls_free_func</a>)(<span class="keywordtype">void</span>* value);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;<a class="code" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> <a class="code" href="group___t_h_r_e_a_d.html#gab1b97098aabc89f98eca8f8f7274f3e7">opj_tls_set</a>(<a class="code" href="structopj__tls__t.html">opj_tls_t</a>* tls, <span class="keywordtype">int</span> key, <span class="keywordtype">void</span>* value,</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <a class="code" href="group___t_h_r_e_a_d.html#ga38f8cdfd288c8ff8963444403549ad6c">opj_tls_free_func</a> free_func);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="group___t_h_r_e_a_d.html#ga656a5e32341e7433cf6b70e53b002c5e"> 195</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structopj__thread__pool__t.html">opj_thread_pool_t</a> <a class="code" href="structopj__thread__pool__t.html">opj_thread_pool_t</a>;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;<a class="code" href="structopj__thread__pool__t.html">opj_thread_pool_t</a>* <a class="code" href="group___t_h_r_e_a_d.html#ga24a3a1b343df1168a3beb57babfa0916">opj_thread_pool_create</a>(<span class="keywordtype">int</span> num_threads);</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="group___t_h_r_e_a_d.html#gaf29983f3245378c30edbef61fe22913b"> 213</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="group___t_h_r_e_a_d.html#gaf29983f3245378c30edbef61fe22913b">opj_job_fn</a>)(<span class="keywordtype">void</span>* user_data, <a class="code" href="structopj__tls__t.html">opj_tls_t</a>* <a class="code" href="structopj__thread__pool__t.html#a401a98b276c965e0b63efaf9e1369730">tls</a>);</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160;<a class="code" href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a> <a class="code" href="group___t_h_r_e_a_d.html#gaf389ecb3a583a30077fc546eef767c89">opj_thread_pool_submit_job</a>(<a class="code" href="structopj__thread__pool__t.html">opj_thread_pool_t</a>* tp, <a class="code" href="group___t_h_r_e_a_d.html#gaf29983f3245378c30edbef61fe22913b">opj_job_fn</a> job_fn,</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; <span class="keywordtype">void</span>* user_data);</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___t_h_r_e_a_d.html#ga0ced26c80598e49bf3a964bb802130f1">opj_thread_pool_wait_completion</a>(<a class="code" href="structopj__thread__pool__t.html">opj_thread_pool_t</a>* tp,</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; <span class="keywordtype">int</span> max_remaining_jobs);</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group___t_h_r_e_a_d.html#ga4faef98a6b8495c63e9e5ce9cf0c3fc3">opj_thread_pool_get_thread_count</a>(<a class="code" href="structopj__thread__pool__t.html">opj_thread_pool_t</a>* tp);</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___t_h_r_e_a_d.html#gae44e8b9258d0baa19e3671a382faa33e">opj_thread_pool_destroy</a>(<a class="code" href="structopj__thread__pool__t.html">opj_thread_pool_t</a>* tp);</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* THREAD_H */</span><span class="preprocessor"></span></div><div class="ttc" id="group___t_h_r_e_a_d_html_gaf29983f3245378c30edbef61fe22913b"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gaf29983f3245378c30edbef61fe22913b">opj_job_fn</a></div><div class="ttdeci">void(* opj_job_fn)(void *user_data, opj_tls_t *tls)</div><div class="ttdoc">User function to execute in a thread. </div><div class="ttdef"><b>Definition:</b> thread.h:213</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_gaf389ecb3a583a30077fc546eef767c89"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gaf389ecb3a583a30077fc546eef767c89">opj_thread_pool_submit_job</a></div><div class="ttdeci">OPJ_BOOL opj_thread_pool_submit_job(opj_thread_pool_t *tp, opj_job_fn job_fn, void *user_data)</div><div class="ttdoc">Submit a new job to be run by one of the thread in the thread pool. </div><div class="ttdef"><b>Definition:</b> thread.c:827</div></div>
<div class="ttc" id="openjpeg_8h_html_abb5dad6294f4611f1925388e919b16f4"><div class="ttname"><a href="openjpeg_8h.html#abb5dad6294f4611f1925388e919b16f4">OPJ_BOOL</a></div><div class="ttdeci">int OPJ_BOOL</div><div class="ttdef"><b>Definition:</b> openjpeg.h:110</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga24a3a1b343df1168a3beb57babfa0916"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga24a3a1b343df1168a3beb57babfa0916">opj_thread_pool_create</a></div><div class="ttdeci">opj_thread_pool_t * opj_thread_pool_create(int num_threads)</div><div class="ttdoc">Create a new thread pool. </div><div class="ttdef"><b>Definition:</b> thread.c:625</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga7f8a4c1ce6d9ad2dde1d293fad317522"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga7f8a4c1ce6d9ad2dde1d293fad317522">opj_cond_create</a></div><div class="ttdeci">opj_cond_t * opj_cond_create(void)</div><div class="ttdoc">Creates a condition. </div><div class="ttdef"><b>Definition:</b> thread.c:463</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga6edf64f08cd0b48299800852d52245d6"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga6edf64f08cd0b48299800852d52245d6">opj_cond_wait</a></div><div class="ttdeci">void opj_cond_wait(opj_cond_t *cond, opj_mutex_t *mutex)</div><div class="ttdoc">Wait for the condition to be signaled. </div><div class="ttdef"><b>Definition:</b> thread.c:468</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_gae5f9aa8219645e0e836aaf0c453db624"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gae5f9aa8219645e0e836aaf0c453db624">opj_thread_fn</a></div><div class="ttdeci">void(* opj_thread_fn)(void *user_data)</div><div class="ttdoc">User function to execute in a thread. </div><div class="ttdef"><b>Definition:</b> thread.h:146</div></div>
<div class="ttc" id="openjpeg_8h_html"><div class="ttname"><a href="openjpeg_8h.html">openjpeg.h</a></div></div>
<div class="ttc" id="structopj__tls__t_html"><div class="ttname"><a href="structopj__tls__t.html">opj_tls_t</a></div><div class="ttdef"><b>Definition:</b> thread.c:504</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga38f8cdfd288c8ff8963444403549ad6c"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga38f8cdfd288c8ff8963444403549ad6c">opj_tls_free_func</a></div><div class="ttdeci">void(* opj_tls_free_func)(void *value)</div><div class="ttdoc">Type of the function used to free a TLS value. </div><div class="ttdef"><b>Definition:</b> thread.h:177</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_gafba4c2356f6d070d43e5f0d5c71fdbee"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gafba4c2356f6d070d43e5f0d5c71fdbee">opj_cond_destroy</a></div><div class="ttdeci">void opj_cond_destroy(opj_cond_t *cond)</div><div class="ttdoc">Destroy a condition. </div><div class="ttdef"><b>Definition:</b> thread.c:479</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga439cd27c17f11fc56a911a126811fb87"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga439cd27c17f11fc56a911a126811fb87">opj_cond_t</a></div><div class="ttdeci">struct opj_cond_t opj_cond_t</div><div class="ttdoc">Opaque type for a condition. </div><div class="ttdef"><b>Definition:</b> thread.h:81</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_gab1b97098aabc89f98eca8f8f7274f3e7"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gab1b97098aabc89f98eca8f8f7274f3e7">opj_tls_set</a></div><div class="ttdeci">OPJ_BOOL opj_tls_set(opj_tls_t *tls, int key, void *value, opj_tls_free_func free_func)</div><div class="ttdoc">Set a thread local value corresponding to the provided key. </div><div class="ttdef"><b>Definition:</b> thread.c:540</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga4faef98a6b8495c63e9e5ce9cf0c3fc3"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga4faef98a6b8495c63e9e5ce9cf0c3fc3">opj_thread_pool_get_thread_count</a></div><div class="ttdeci">int opj_thread_pool_get_thread_count(opj_thread_pool_t *tp)</div><div class="ttdoc">Return the number of threads associated with the thread pool. </div><div class="ttdef"><b>Definition:</b> thread.c:914</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga541be683ba651c8244bde3f0d3650c92"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga541be683ba651c8244bde3f0d3650c92">opj_thread_create</a></div><div class="ttdeci">opj_thread_t * opj_thread_create(opj_thread_fn thread_fn, void *user_data)</div><div class="ttdoc">Creates a new thread. </div><div class="ttdef"><b>Definition:</b> thread.c:484</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga66757c34c788b873ad9acfb60a5e008b"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga66757c34c788b873ad9acfb60a5e008b">opj_mutex_destroy</a></div><div class="ttdeci">void opj_mutex_destroy(opj_mutex_t *mutex)</div><div class="ttdoc">Destroy a mutex. </div><div class="ttdef"><b>Definition:</b> thread.c:458</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga0f3687b35d6f3c395e1156a8499d1632"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga0f3687b35d6f3c395e1156a8499d1632">opj_cond_signal</a></div><div class="ttdeci">void opj_cond_signal(opj_cond_t *cond)</div><div class="ttdoc">Signal waiting threads on a condition. </div><div class="ttdef"><b>Definition:</b> thread.c:474</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga0ced26c80598e49bf3a964bb802130f1"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga0ced26c80598e49bf3a964bb802130f1">opj_thread_pool_wait_completion</a></div><div class="ttdeci">void opj_thread_pool_wait_completion(opj_thread_pool_t *tp, int max_remaining_jobs)</div><div class="ttdoc">Wait that no more than max_remaining_jobs jobs are remaining in the queue of the thread pool...</div><div class="ttdef"><b>Definition:</b> thread.c:894</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga29120af1ce48d5ecd651795f2e427755"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga29120af1ce48d5ecd651795f2e427755">opj_mutex_t</a></div><div class="ttdeci">struct opj_mutex_t opj_mutex_t</div><div class="ttdoc">Opaque type for a mutex. </div><div class="ttdef"><b>Definition:</b> thread.h:52</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_gaed72b7b75acb6eaeb620085b01ee365b"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gaed72b7b75acb6eaeb620085b01ee365b">opj_thread_t</a></div><div class="ttdeci">struct opj_thread_t opj_thread_t</div><div class="ttdoc">Opaque type for a thread handle. </div><div class="ttdef"><b>Definition:</b> thread.h:141</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_gaa81ea27e801a8c0cf453b256ab38e067"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gaa81ea27e801a8c0cf453b256ab38e067">opj_mutex_create</a></div><div class="ttdeci">opj_mutex_t * opj_mutex_create(void)</div><div class="ttdoc">Creates a mutex. </div><div class="ttdef"><b>Definition:</b> thread.c:443</div></div>
<div class="ttc" id="structopj__thread__pool__t_html"><div class="ttname"><a href="structopj__thread__pool__t.html">opj_thread_pool_t</a></div><div class="ttdef"><b>Definition:</b> thread.c:605</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_gacf1f5a5f7f7257663505af02b717272c"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gacf1f5a5f7f7257663505af02b717272c">opj_mutex_unlock</a></div><div class="ttdeci">void opj_mutex_unlock(opj_mutex_t *mutex)</div><div class="ttdoc">Unlock/release the mutex. </div><div class="ttdef"><b>Definition:</b> thread.c:453</div></div>
<div class="ttc" id="structopj__thread__pool__t_html_a401a98b276c965e0b63efaf9e1369730"><div class="ttname"><a href="structopj__thread__pool__t.html#a401a98b276c965e0b63efaf9e1369730">opj_thread_pool_t::tls</a></div><div class="ttdeci">opj_tls_t * tls</div><div class="ttdef"><b>Definition:</b> thread.c:615</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_ga90caa0ff9c1e54033ef1e3010faf03a9"><div class="ttname"><a href="group___t_h_r_e_a_d.html#ga90caa0ff9c1e54033ef1e3010faf03a9">opj_tls_get</a></div><div class="ttdeci">void * opj_tls_get(opj_tls_t *tls, int key)</div><div class="ttdoc">Get a thread local value corresponding to the provided key. </div><div class="ttdef"><b>Definition:</b> thread.c:529</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_gad49986b56da75f8609b7c940c17f713f"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gad49986b56da75f8609b7c940c17f713f">opj_thread_join</a></div><div class="ttdeci">void opj_thread_join(opj_thread_t *thread)</div><div class="ttdoc">Wait for a thread to be finished and release associated resources to the thread handle. </div><div class="ttdef"><b>Definition:</b> thread.c:491</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_gab38a90b92a1d294f7e1886e36a405518"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gab38a90b92a1d294f7e1886e36a405518">opj_mutex_lock</a></div><div class="ttdeci">void opj_mutex_lock(opj_mutex_t *mutex)</div><div class="ttdoc">Lock/acquire the mutex. </div><div class="ttdef"><b>Definition:</b> thread.c:448</div></div>
<div class="ttc" id="group___t_h_r_e_a_d_html_gae44e8b9258d0baa19e3671a382faa33e"><div class="ttname"><a href="group___t_h_r_e_a_d.html#gae44e8b9258d0baa19e3671a382faa33e">opj_thread_pool_destroy</a></div><div class="ttdeci">void opj_thread_pool_destroy(opj_thread_pool_t *tp)</div><div class="ttdoc">Destroy a thread pool. </div><div class="ttdef"><b>Definition:</b> thread.c:919</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>