<ahref="thread_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/*</span></div>
<divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment"> * The copyright in this software is being made available under the 2-clauses</span></div>
<divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment"> * BSD License, included below. This software may be subject to other third</span></div>
<divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> * party and contributor rights, including patent rights, and no such rights</span></div>
<divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment"> * are granted under this license.</span></div>
<divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> * are met:</span></div>
<divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> <spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="ttc"id="athread_8h_html_a0f3687b35d6f3c395e1156a8499d1632"><divclass="ttname"><ahref="thread_8h.html#a0f3687b35d6f3c395e1156a8499d1632">opj_cond_signal</a></div><divclass="ttdeci">void opj_cond_signal(opj_cond_t *cond)</div><divclass="ttdoc">Signal waiting threads on a condition.</div><divclass="ttdef"><b>Definition:</b> thread.c:474</div></div>
<divclass="ttc"id="astructopj__codestream__info_html_a231c10b2c238e1e6462bf7cd40871169"><divclass="ttname"><ahref="structopj__codestream__info.html#a231c10b2c238e1e6462bf7cd40871169">opj_codestream_info::tw</a></div><divclass="ttdeci">int tw</div><divclass="ttdoc">number of tiles in X</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:873</div></div>
<divclass="ttc"id="acio_8c_html_ae94657bc4ae96f252467a685168b94e1"><divclass="ttname"><ahref="cio_8c.html#ae94657bc4ae96f252467a685168b94e1">opj_stream_write_data</a></div><divclass="ttdeci">OPJ_SIZE_T opj_stream_write_data(opj_stream_private_t *p_stream, const OPJ_BYTE *p_buffer, OPJ_SIZE_T p_size, opj_event_mgr_t *p_event_mgr)</div><divclass="ttdoc">Writes some bytes to the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:385</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a3fe08bb7876e393dd04332d049a4d53e"><divclass="ttname"><ahref="opj__malloc_8c.html#a3fe08bb7876e393dd04332d049a4d53e">opj_calloc</a></div><divclass="ttdeci">void * opj_calloc(size_t num, size_t size)</div><divclass="ttdoc">Allocate a memory block with elements initialized to 0.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:198</div></div>
<divclass="ttc"id="astructopj__tile__info_html_a1956cb6a75bc705df94f12114ae1414a"><divclass="ttname"><ahref="structopj__tile__info.html#a1956cb6a75bc705df94f12114ae1414a">opj_tile_info::marker</a></div><divclass="ttdeci">opj_marker_info_t * marker</div><divclass="ttdoc">list of markers</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:839</div></div>
<divclass="ttc"id="athread_8c_html_ae44e8b9258d0baa19e3671a382faa33e"><divclass="ttname"><ahref="thread_8c.html#ae44e8b9258d0baa19e3671a382faa33e">opj_thread_pool_destroy</a></div><divclass="ttdeci">void opj_thread_pool_destroy(opj_thread_pool_t *tp)</div><divclass="ttdoc">Destroy a thread pool.</div><divclass="ttdef"><b>Definition:</b> thread.c:919</div></div>
<divclass="ttc"id="athread_8c_html_a35034e7c9fa76c7e1e719bf7900f9ee2"><divclass="ttname"><ahref="thread_8c.html#a35034e7c9fa76c7e1e719bf7900f9ee2">opj_tls_set</a></div><divclass="ttdeci">OPJ_BOOL opj_tls_set(opj_tls_t *tls, int key, void *value, opj_tls_free_func opj_free_func)</div><divclass="ttdoc">Set a thread local value corresponding to the provided key.</div><divclass="ttdef"><b>Definition:</b> thread.c:540</div></div>
<divclass="ttc"id="athread_8h_html_a66757c34c788b873ad9acfb60a5e008b"><divclass="ttname"><ahref="thread_8h.html#a66757c34c788b873ad9acfb60a5e008b">opj_mutex_destroy</a></div><divclass="ttdeci">void opj_mutex_destroy(opj_mutex_t *mutex)</div><divclass="ttdoc">Destroy a mutex.</div><divclass="ttdef"><b>Definition:</b> thread.c:458</div></div>
<divclass="ttc"id="athread_8h_html_a38f8cdfd288c8ff8963444403549ad6c"><divclass="ttname"><ahref="thread_8h.html#a38f8cdfd288c8ff8963444403549ad6c">opj_tls_free_func</a></div><divclass="ttdeci">void(* opj_tls_free_func)(void *value)</div><divclass="ttdoc">Type of the function used to free a TLS value.</div><divclass="ttdef"><b>Definition:</b> thread.h:177</div></div>
<divclass="ttc"id="astructopj__tp__info_html_ad39cf4235e80407535e281b6e5b12a06"><divclass="ttname"><ahref="structopj__tp__info.html#ad39cf4235e80407535e281b6e5b12a06">opj_tp_info::tp_end_header</a></div><divclass="ttdeci">int tp_end_header</div><divclass="ttdoc">end position of tile part header</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:799</div></div>
<divclass="ttc"id="athread_8h_html_ae5f9aa8219645e0e836aaf0c453db624"><divclass="ttname"><ahref="thread_8h.html#ae5f9aa8219645e0e836aaf0c453db624">opj_thread_fn</a></div><divclass="ttdeci">void(* opj_thread_fn)(void *user_data)</div><divclass="ttdoc">User function to execute in a thread.</div><divclass="ttdef"><b>Definition:</b> thread.h:146</div></div>
<divclass="ttc"id="astructopj__thread__pool__t_html_ad84a2e09419498cf81c8994f0441b131"><divclass="ttname"><ahref="structopj__thread__pool__t.html#ad84a2e09419498cf81c8994f0441b131">opj_thread_pool_t::pending_jobs_count</a></div><divclass="ttdeci">volatile int pending_jobs_count</div><divclass="ttdef"><b>Definition:</b> thread.c:612</div></div>
<divclass="ttc"id="athread_8c_html_a0f3687b35d6f3c395e1156a8499d1632"><divclass="ttname"><ahref="thread_8c.html#a0f3687b35d6f3c395e1156a8499d1632">opj_cond_signal</a></div><divclass="ttdeci">void opj_cond_signal(opj_cond_t *cond)</div><divclass="ttdoc">Signal waiting threads on a condition.</div><divclass="ttdef"><b>Definition:</b> thread.c:474</div></div>
<divclass="ttc"id="athread_8c_html_af389ecb3a583a30077fc546eef767c89"><divclass="ttname"><ahref="thread_8c.html#af389ecb3a583a30077fc546eef767c89">opj_thread_pool_submit_job</a></div><divclass="ttdeci">OPJ_BOOL opj_thread_pool_submit_job(opj_thread_pool_t *tp, opj_job_fn job_fn, void *user_data)</div><divclass="ttdoc">Submit a new job to be run by one of the thread in the thread pool.</div><divclass="ttdef"><b>Definition:</b> thread.c:827</div></div>
<divclass="ttc"id="athread_8h_html_ab1b97098aabc89f98eca8f8f7274f3e7"><divclass="ttname"><ahref="thread_8h.html#ab1b97098aabc89f98eca8f8f7274f3e7">opj_tls_set</a></div><divclass="ttdeci">OPJ_BOOL opj_tls_set(opj_tls_t *tls, int key, void *value, opj_tls_free_func free_func)</div><divclass="ttdoc">Set a thread local value corresponding to the provided key.</div><divclass="ttdef"><b>Definition:</b> thread.c:540</div></div>
<divclass="ttc"id="acio_8c_html_ac82f28130f72561ebd1a18b6bc84edb8"><divclass="ttname"><ahref="cio_8c.html#ac82f28130f72561ebd1a18b6bc84edb8">opj_stream_skip</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_skip(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, opj_event_mgr_t *p_event_mgr)</div><divclass="ttdoc">Skips a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:593</div></div>
<divclass="ttc"id="acio_8c_html_a9061d0624a17af80b74e1a114b0c7f06"><divclass="ttname"><ahref="cio_8c.html#a9061d0624a17af80b74e1a114b0c7f06">opj_stream_seek</a></div><divclass="ttdeci">OPJ_BOOL opj_stream_seek(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, struct opj_event_mgr *p_event_mgr)</div><divclass="ttdoc">Seeks a number of bytes from the stream.</div><divclass="ttdef"><b>Definition:</b> cio.c:641</div></div>
<divclass="ttc"id="astructopj__event__mgr_html"><divclass="ttname"><ahref="structopj__event__mgr.html">opj_event_mgr</a></div><divclass="ttdoc">Message handler object used for.</div><divclass="ttdef"><b>Definition:</b> event.h:50</div></div>
<divclass="ttc"id="athread_8h_html_a541be683ba651c8244bde3f0d3650c92"><divclass="ttname"><ahref="thread_8h.html#a541be683ba651c8244bde3f0d3650c92">opj_thread_create</a></div><divclass="ttdeci">opj_thread_t * opj_thread_create(opj_thread_fn thread_fn, void *user_data)</div><divclass="ttdoc">Creates a new thread.</div><divclass="ttdef"><b>Definition:</b> thread.c:484</div></div>
<divclass="ttc"id="acio_8c_html_a5c59a39f3664f9deb654c269153c600a"><divclass="ttname"><ahref="cio_8c.html#a5c59a39f3664f9deb654c269153c600a">opj_stream_tell</a></div><divclass="ttdeci">OPJ_OFF_T opj_stream_tell(const opj_stream_private_t *p_stream)</div><divclass="ttdoc">Tells the byte offset on the stream (similar to ftell).</div><divclass="ttdef"><b>Definition:</b> cio.c:579</div></div>
<divclass="ttc"id="athread_8h_html_a4faef98a6b8495c63e9e5ce9cf0c3fc3"><divclass="ttname"><ahref="thread_8h.html#a4faef98a6b8495c63e9e5ce9cf0c3fc3">opj_thread_pool_get_thread_count</a></div><divclass="ttdeci">int opj_thread_pool_get_thread_count(opj_thread_pool_t *tp)</div><divclass="ttdoc">Return the number of threads associated with the thread pool.</div><divclass="ttdef"><b>Definition:</b> thread.c:914</div></div>
<divclass="ttc"id="athread_8h_html_af389ecb3a583a30077fc546eef767c89"><divclass="ttname"><ahref="thread_8h.html#af389ecb3a583a30077fc546eef767c89">opj_thread_pool_submit_job</a></div><divclass="ttdeci">OPJ_BOOL opj_thread_pool_submit_job(opj_thread_pool_t *tp, opj_job_fn job_fn, void *user_data)</div><divclass="ttdoc">Submit a new job to be run by one of the thread in the thread pool.</div><divclass="ttdef"><b>Definition:</b> thread.c:827</div></div>
<divclass="ttc"id="athread_8c_html_a4faef98a6b8495c63e9e5ce9cf0c3fc3"><divclass="ttname"><ahref="thread_8c.html#a4faef98a6b8495c63e9e5ce9cf0c3fc3">opj_thread_pool_get_thread_count</a></div><divclass="ttdeci">int opj_thread_pool_get_thread_count(opj_thread_pool_t *tp)</div><divclass="ttdoc">Return the number of threads associated with the thread pool.</div><divclass="ttdef"><b>Definition:</b> thread.c:914</div></div>
<divclass="ttc"id="athread_8c_html_aae69d6e8a731757a983888c4047d3e3b"><divclass="ttname"><ahref="thread_8c.html#aae69d6e8a731757a983888c4047d3e3b">opj_has_thread_support</a></div><divclass="ttdeci">OPJ_BOOL OPJ_CALLCONV opj_has_thread_support(void)</div><divclass="ttdoc">Returns if the library is built with thread support.</div><divclass="ttdef"><b>Definition:</b> thread.c:433</div></div>
<divclass="ttc"id="astructopj__tp__info_html_a8456c54bdba73448429e5a0d830e2123"><divclass="ttname"><ahref="structopj__tp__info.html#a8456c54bdba73448429e5a0d830e2123">opj_tp_info::tp_start_pos</a></div><divclass="ttdeci">int tp_start_pos</div><divclass="ttdoc">start position of tile part</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:797</div></div>
<divclass="ttc"id="athread_8h_html_acf1f5a5f7f7257663505af02b717272c"><divclass="ttname"><ahref="thread_8h.html#acf1f5a5f7f7257663505af02b717272c">opj_mutex_unlock</a></div><divclass="ttdeci">void opj_mutex_unlock(opj_mutex_t *mutex)</div><divclass="ttdoc">Unlock/release the mutex.</div><divclass="ttdef"><b>Definition:</b> thread.c:453</div></div>
<divclass="ttc"id="athread_8c_html_ab38a90b92a1d294f7e1886e36a405518"><divclass="ttname"><ahref="thread_8c.html#ab38a90b92a1d294f7e1886e36a405518">opj_mutex_lock</a></div><divclass="ttdeci">void opj_mutex_lock(opj_mutex_t *mutex)</div><divclass="ttdoc">Lock/acquire the mutex.</div><divclass="ttdef"><b>Definition:</b> thread.c:448</div></div>
<divclass="ttc"id="astructopj__tp__info_html"><divclass="ttname"><ahref="structopj__tp__info.html">opj_tp_info</a></div><divclass="ttdoc">Index structure : Information concerning tile-parts.</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:795</div></div>
<divclass="ttc"id="athread_8c_html_a6edf64f08cd0b48299800852d52245d6"><divclass="ttname"><ahref="thread_8c.html#a6edf64f08cd0b48299800852d52245d6">opj_cond_wait</a></div><divclass="ttdeci">void opj_cond_wait(opj_cond_t *cond, opj_mutex_t *mutex)</div><divclass="ttdoc">Wait for the condition to be signaled.</div><divclass="ttdef"><b>Definition:</b> thread.c:468</div></div>
<divclass="ttc"id="athread_8c_html_a541be683ba651c8244bde3f0d3650c92"><divclass="ttname"><ahref="thread_8c.html#a541be683ba651c8244bde3f0d3650c92">opj_thread_create</a></div><divclass="ttdeci">opj_thread_t * opj_thread_create(opj_thread_fn thread_fn, void *user_data)</div><divclass="ttdoc">Creates a new thread.</div><divclass="ttdef"><b>Definition:</b> thread.c:484</div></div>
<divclass="ttc"id="athread_8h_html_a6edf64f08cd0b48299800852d52245d6"><divclass="ttname"><ahref="thread_8h.html#a6edf64f08cd0b48299800852d52245d6">opj_cond_wait</a></div><divclass="ttdeci">void opj_cond_wait(opj_cond_t *cond, opj_mutex_t *mutex)</div><divclass="ttdoc">Wait for the condition to be signaled.</div><divclass="ttdef"><b>Definition:</b> thread.c:468</div></div>
<divclass="ttc"id="athread_8h_html_a24a3a1b343df1168a3beb57babfa0916"><divclass="ttname"><ahref="thread_8h.html#a24a3a1b343df1168a3beb57babfa0916">opj_thread_pool_create</a></div><divclass="ttdeci">opj_thread_pool_t * opj_thread_pool_create(int num_threads)</div><divclass="ttdoc">Create a new thread pool.</div><divclass="ttdef"><b>Definition:</b> thread.c:625</div></div>
<divclass="ttc"id="aopj__malloc_8c_html_a9d7d909f8dc1a2c23313c48645341e81"><divclass="ttname"><ahref="opj__malloc_8c.html#a9d7d909f8dc1a2c23313c48645341e81">opj_free</a></div><divclass="ttdeci">void opj_free(void *ptr)</div><divclass="ttdoc">Deallocates or frees a memory block.</div><divclass="ttdef"><b>Definition:</b> opj_malloc.c:246</div></div>
<divclass="ttc"id="athread_8h_html_ad49986b56da75f8609b7c940c17f713f"><divclass="ttname"><ahref="thread_8h.html#ad49986b56da75f8609b7c940c17f713f">opj_thread_join</a></div><divclass="ttdeci">void opj_thread_join(opj_thread_t *thread)</div><divclass="ttdoc">Wait for a thread to be finished and release associated resources to the thread handle.</div><divclass="ttdef"><b>Definition:</b> thread.c:491</div></div>
<divclass="ttc"id="athread_8c_html_acf1f5a5f7f7257663505af02b717272c"><divclass="ttname"><ahref="thread_8c.html#acf1f5a5f7f7257663505af02b717272c">opj_mutex_unlock</a></div><divclass="ttdeci">void opj_mutex_unlock(opj_mutex_t *mutex)</div><divclass="ttdoc">Unlock/release the mutex.</div><divclass="ttdef"><b>Definition:</b> thread.c:453</div></div>
<divclass="ttc"id="athread_8h_html_aa81ea27e801a8c0cf453b256ab38e067"><divclass="ttname"><ahref="thread_8h.html#aa81ea27e801a8c0cf453b256ab38e067">opj_mutex_create</a></div><divclass="ttdeci">opj_mutex_t * opj_mutex_create(void)</div><divclass="ttdoc">Creates a mutex.</div><divclass="ttdef"><b>Definition:</b> thread.c:443</div></div>
<divclass="ttc"id="athread_8c_html_a0ced26c80598e49bf3a964bb802130f1"><divclass="ttname"><ahref="thread_8c.html#a0ced26c80598e49bf3a964bb802130f1">opj_thread_pool_wait_completion</a></div><divclass="ttdeci">void opj_thread_pool_wait_completion(opj_thread_pool_t *tp, int max_remaining_jobs)</div><divclass="ttdoc">Wait that no more than max_remaining_jobs jobs are remaining in the queue of the thread pool.</div><divclass="ttdef"><b>Definition:</b> thread.c:894</div></div>
<divclass="ttc"id="athread_8h_html_ab38a90b92a1d294f7e1886e36a405518"><divclass="ttname"><ahref="thread_8h.html#ab38a90b92a1d294f7e1886e36a405518">opj_mutex_lock</a></div><divclass="ttdeci">void opj_mutex_lock(opj_mutex_t *mutex)</div><divclass="ttdoc">Lock/acquire the mutex.</div><divclass="ttdef"><b>Definition:</b> thread.c:448</div></div>
<divclass="ttc"id="athread_8c_html_a66757c34c788b873ad9acfb60a5e008b"><divclass="ttname"><ahref="thread_8c.html#a66757c34c788b873ad9acfb60a5e008b">opj_mutex_destroy</a></div><divclass="ttdeci">void opj_mutex_destroy(opj_mutex_t *mutex)</div><divclass="ttdoc">Destroy a mutex.</div><divclass="ttdef"><b>Definition:</b> thread.c:458</div></div>
<divclass="ttc"id="athread_8h_html_a29120af1ce48d5ecd651795f2e427755"><divclass="ttname"><ahref="thread_8h.html#a29120af1ce48d5ecd651795f2e427755">opj_mutex_t</a></div><divclass="ttdeci">struct opj_mutex_t opj_mutex_t</div><divclass="ttdoc">Opaque type for a mutex.</div><divclass="ttdef"><b>Definition:</b> thread.h:52</div></div>
<divclass="ttc"id="athread_8c_html_aa81ea27e801a8c0cf453b256ab38e067"><divclass="ttname"><ahref="thread_8c.html#aa81ea27e801a8c0cf453b256ab38e067">opj_mutex_create</a></div><divclass="ttdeci">opj_mutex_t * opj_mutex_create(void)</div><divclass="ttdoc">Creates a mutex.</div><divclass="ttdef"><b>Definition:</b> thread.c:443</div></div>
<divclass="ttc"id="athread_8c_html_a24a3a1b343df1168a3beb57babfa0916"><divclass="ttname"><ahref="thread_8c.html#a24a3a1b343df1168a3beb57babfa0916">opj_thread_pool_create</a></div><divclass="ttdeci">opj_thread_pool_t * opj_thread_pool_create(int num_threads)</div><divclass="ttdoc">Create a new thread pool.</div><divclass="ttdef"><b>Definition:</b> thread.c:625</div></div>
<divclass="ttc"id="astructopj__tile__info_html_a47b12fca5a60c8ab6d505a580098a382"><divclass="ttname"><ahref="structopj__tile__info.html#a47b12fca5a60c8ab6d505a580098a382">opj_tile_info::marknum</a></div><divclass="ttdeci">int marknum</div><divclass="ttdoc">number of markers</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:837</div></div>
<divclass="ttc"id="athread_8h_html_a7f8a4c1ce6d9ad2dde1d293fad317522"><divclass="ttname"><ahref="thread_8h.html#a7f8a4c1ce6d9ad2dde1d293fad317522">opj_cond_create</a></div><divclass="ttdeci">opj_cond_t * opj_cond_create(void)</div><divclass="ttdoc">Creates a condition.</div><divclass="ttdef"><b>Definition:</b> thread.c:463</div></div>
<divclass="ttc"id="astructopj__codestream__info_html"><divclass="ttname"><ahref="structopj__codestream__info.html">opj_codestream_info</a></div><divclass="ttdoc">Index structure of the codestream.</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:851</div></div>
<divclass="ttc"id="athread_8c_html_acdca1ecb372546840fdd9d5d5badce07"><divclass="ttname"><ahref="thread_8c.html#acdca1ecb372546840fdd9d5d5badce07">opj_thread_pool_setup</a></div><divclass="ttdeci">static OPJ_BOOL opj_thread_pool_setup(opj_thread_pool_t *tp, int num_threads)</div><divclass="ttdef"><b>Definition:</b> thread.c:684</div></div>
<divclass="ttc"id="athread_8c_html_a93ce856805936340ca26e98bcf3f4996"><divclass="ttname"><ahref="thread_8c.html#a93ce856805936340ca26e98bcf3f4996">opj_get_num_cpus</a></div><divclass="ttdeci">int OPJ_CALLCONV opj_get_num_cpus(void)</div><divclass="ttdoc">Return the number of virtual CPUs.</div><divclass="ttdef"><b>Definition:</b> thread.c:438</div></div>
<divclass="ttc"id="athread_8h_html_a439cd27c17f11fc56a911a126811fb87"><divclass="ttname"><ahref="thread_8h.html#a439cd27c17f11fc56a911a126811fb87">opj_cond_t</a></div><divclass="ttdeci">struct opj_cond_t opj_cond_t</div><divclass="ttdoc">Opaque type for a condition.</div><divclass="ttdef"><b>Definition:</b> thread.h:81</div></div>
<divclass="ttc"id="athread_8c_html_ad49986b56da75f8609b7c940c17f713f"><divclass="ttname"><ahref="thread_8c.html#ad49986b56da75f8609b7c940c17f713f">opj_thread_join</a></div><divclass="ttdeci">void opj_thread_join(opj_thread_t *thread)</div><divclass="ttdoc">Wait for a thread to be finished and release associated resources to the thread handle.</div><divclass="ttdef"><b>Definition:</b> thread.c:491</div></div>
<divclass="ttc"id="athread_8h_html_aed72b7b75acb6eaeb620085b01ee365b"><divclass="ttname"><ahref="thread_8h.html#aed72b7b75acb6eaeb620085b01ee365b">opj_thread_t</a></div><divclass="ttdeci">struct opj_thread_t opj_thread_t</div><divclass="ttdoc">Opaque type for a thread handle.</div><divclass="ttdef"><b>Definition:</b> thread.h:141</div></div>
<divclass="ttc"id="athread_8h_html_a90caa0ff9c1e54033ef1e3010faf03a9"><divclass="ttname"><ahref="thread_8h.html#a90caa0ff9c1e54033ef1e3010faf03a9">opj_tls_get</a></div><divclass="ttdeci">void * opj_tls_get(opj_tls_t *tls, int key)</div><divclass="ttdoc">Get a thread local value corresponding to the provided key.</div><divclass="ttdef"><b>Definition:</b> thread.c:529</div></div>
<divclass="ttc"id="athread_8c_html_a7f8a4c1ce6d9ad2dde1d293fad317522"><divclass="ttname"><ahref="thread_8c.html#a7f8a4c1ce6d9ad2dde1d293fad317522">opj_cond_create</a></div><divclass="ttdeci">opj_cond_t * opj_cond_create(void)</div><divclass="ttdoc">Creates a condition.</div><divclass="ttdef"><b>Definition:</b> thread.c:463</div></div>
<divclass="ttc"id="athread_8h_html_a0ced26c80598e49bf3a964bb802130f1"><divclass="ttname"><ahref="thread_8h.html#a0ced26c80598e49bf3a964bb802130f1">opj_thread_pool_wait_completion</a></div><divclass="ttdeci">void opj_thread_pool_wait_completion(opj_thread_pool_t *tp, int max_remaining_jobs)</div><divclass="ttdoc">Wait that no more than max_remaining_jobs jobs are remaining in the queue of the thread pool.</div><divclass="ttdef"><b>Definition:</b> thread.c:894</div></div>
<divclass="ttc"id="athread_8c_html_a90caa0ff9c1e54033ef1e3010faf03a9"><divclass="ttname"><ahref="thread_8c.html#a90caa0ff9c1e54033ef1e3010faf03a9">opj_tls_get</a></div><divclass="ttdeci">void * opj_tls_get(opj_tls_t *tls, int key)</div><divclass="ttdoc">Get a thread local value corresponding to the provided key.</div><divclass="ttdef"><b>Definition:</b> thread.c:529</div></div>
<divclass="ttc"id="astructopj__codestream__info_html_a4f18a0061ac864226fffd5590a771c08"><divclass="ttname"><ahref="structopj__codestream__info.html#a4f18a0061ac864226fffd5590a771c08">opj_codestream_info::th</a></div><divclass="ttdeci">int th</div><divclass="ttdoc">number of tiles in Y</div><divclass="ttdef"><b>Definition:</b> openjpeg.h:875</div></div>
<divclass="ttc"id="athread_8h_html_af29983f3245378c30edbef61fe22913b"><divclass="ttname"><ahref="thread_8h.html#af29983f3245378c30edbef61fe22913b">opj_job_fn</a></div><divclass="ttdeci">void(* opj_job_fn)(void *user_data, opj_tls_t *tls)</div><divclass="ttdoc">User function to execute in a thread.</div><divclass="ttdef"><b>Definition:</b> thread.h:213</div></div>
<divclass="ttc"id="athread_8h_html_afba4c2356f6d070d43e5f0d5c71fdbee"><divclass="ttname"><ahref="thread_8h.html#afba4c2356f6d070d43e5f0d5c71fdbee">opj_cond_destroy</a></div><divclass="ttdeci">void opj_cond_destroy(opj_cond_t *cond)</div><divclass="ttdoc">Destroy a condition.</div><divclass="ttdef"><b>Definition:</b> thread.c:479</div></div>