<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Apache Portable Runtime: Thread portability Routines</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.9.1 --> <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div> <h1>Thread portability Routines<br> <small> [<a class="el" href="group__apr__portabile.html">Portability Routines</a>]</small> </h1><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__os__thread.html#ga0">apr_os_thread_get</a> (<a class="el" href="group__apr__portabile.html#ga4">apr_os_thread_t</a> **thethd, <a class="el" href="group__apr__thread__proc.html#ga2">apr_thread_t</a> *thd)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__os__thread.html#ga1">apr_os_threadkey_get</a> (<a class="el" href="group__apr__portabile.html#ga5">apr_os_threadkey_t</a> *thekey, <a class="el" href="group__apr__thread__proc.html#ga6">apr_threadkey_t</a> *key)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__os__thread.html#ga2">apr_os_thread_put</a> (<a class="el" href="group__apr__thread__proc.html#ga2">apr_thread_t</a> **thd, <a class="el" href="group__apr__portabile.html#ga4">apr_os_thread_t</a> *thethd, <a class="el" href="group__apr__pools.html#ga0">apr_pool_t</a> *cont)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__os__thread.html#ga3">apr_os_threadkey_put</a> (<a class="el" href="group__apr__thread__proc.html#ga6">apr_threadkey_t</a> **key, <a class="el" href="group__apr__portabile.html#ga5">apr_os_threadkey_t</a> *thekey, <a class="el" href="group__apr__pools.html#ga0">apr_pool_t</a> *cont)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__apr__portabile.html#ga4">apr_os_thread_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__os__thread.html#ga4">apr_os_thread_current</a> (void)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__os__thread.html#ga5">apr_os_thread_equal</a> (<a class="el" href="group__apr__portabile.html#ga4">apr_os_thread_t</a> tid1, <a class="el" href="group__apr__portabile.html#ga4">apr_os_thread_t</a> tid2)</td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="ga4" doxytag="apr_portable.h::apr_os_thread_current"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__apr__portabile.html#ga4">apr_os_thread_t</a> apr_os_thread_current </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Get the thread ID </td> </tr> </table> <a class="anchor" name="ga5" doxytag="apr_portable.h::apr_os_thread_equal"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int apr_os_thread_equal </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__apr__portabile.html#ga4">apr_os_thread_t</a> </td> <td class="mdname" nowrap> <em>tid1</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__apr__portabile.html#ga4">apr_os_thread_t</a> </td> <td class="mdname" nowrap> <em>tid2</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Compare two thread id's <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>tid1</em> </td><td>1st Thread ID to compare </td></tr> <tr><td valign="top"></td><td valign="top"><em>tid2</em> </td><td>2nd Thread ID to compare </td></tr> </table> </dl> </td> </tr> </table> <a class="anchor" name="ga0" doxytag="apr_portable.h::apr_os_thread_get"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> apr_os_thread_get </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__apr__portabile.html#ga4">apr_os_thread_t</a> ** </td> <td class="mdname" nowrap> <em>thethd</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__apr__thread__proc.html#ga2">apr_thread_t</a> * </td> <td class="mdname" nowrap> <em>thd</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> convert the thread to os specific type from apr type. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>thethd</em> </td><td>The apr thread to convert </td></tr> <tr><td valign="top"></td><td valign="top"><em>thd</em> </td><td>The os specific thread we are converting to </td></tr> </table> </dl> </td> </tr> </table> <a class="anchor" name="ga2" doxytag="apr_portable.h::apr_os_thread_put"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> apr_os_thread_put </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__apr__thread__proc.html#ga2">apr_thread_t</a> ** </td> <td class="mdname" nowrap> <em>thd</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__apr__portabile.html#ga4">apr_os_thread_t</a> * </td> <td class="mdname" nowrap> <em>thethd</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__apr__pools.html#ga0">apr_pool_t</a> * </td> <td class="mdname" nowrap> <em>cont</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> convert the thread from os specific type to apr type. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>thd</em> </td><td>The apr thread we are converting to. </td></tr> <tr><td valign="top"></td><td valign="top"><em>thethd</em> </td><td>The os specific thread to convert </td></tr> <tr><td valign="top"></td><td valign="top"><em>cont</em> </td><td>The pool to use if it is needed. </td></tr> </table> </dl> </td> </tr> </table> <a class="anchor" name="ga1" doxytag="apr_portable.h::apr_os_threadkey_get"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> apr_os_threadkey_get </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__apr__portabile.html#ga5">apr_os_threadkey_t</a> * </td> <td class="mdname" nowrap> <em>thekey</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__apr__thread__proc.html#ga6">apr_threadkey_t</a> * </td> <td class="mdname" nowrap> <em>key</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> convert the thread private memory key to os specific type from an apr type. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>thekey</em> </td><td>The apr handle we are converting from. </td></tr> <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>The os specific handle we are converting to. </td></tr> </table> </dl> </td> </tr> </table> <a class="anchor" name="ga3" doxytag="apr_portable.h::apr_os_threadkey_put"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> apr_os_threadkey_put </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__apr__thread__proc.html#ga6">apr_threadkey_t</a> ** </td> <td class="mdname" nowrap> <em>key</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__apr__portabile.html#ga5">apr_os_threadkey_t</a> * </td> <td class="mdname" nowrap> <em>thekey</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__apr__pools.html#ga0">apr_pool_t</a> * </td> <td class="mdname" nowrap> <em>cont</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> convert the thread private memory key from os specific type to apr type. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>The apr handle we are converting to. </td></tr> <tr><td valign="top"></td><td valign="top"><em>thekey</em> </td><td>The os specific handle to convert </td></tr> <tr><td valign="top"></td><td valign="top"><em>cont</em> </td><td>The pool to use if it is needed. </td></tr> </table> </dl> </td> </tr> </table> <hr size="1"><address style="align: right;"><small>Generated on Sun Mar 20 19:52:27 2005 for Apache Portable Runtime by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address> </body> </html>