📄 group__g__threads.html
字号:
<td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Create a Thread object. <p><dl class="return" compact><dt><b>Returns:</b></dt><dd>Thread handle on success or NULL on failure </dd></dl><p>Definition at line <a class="el" href="thread_8c-source.html#l00061">61</a> of file <a class="el" href="thread_8c-source.html">thread.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00165">OCI_Thread::err</a>, <a class="el" href="ocilib__types_8h-source.html#l00163">OCI_Thread::handle</a>, <a class="el" href="ocilib__types_8h-source.html#l00164">OCI_Thread::id</a>, and <a class="el" href="group__g__threads.html#gda7fa41aeedc7be2ce4f40c93ece524d">OCI_ThreadFree()</a>.</p></div></div><p><a class="anchor" name="gda7fa41aeedc7be2ce4f40c93ece524d"></a><!-- doxytag: member="ocilib.h::OCI_ThreadFree" ref="gda7fa41aeedc7be2ce4f40c93ece524d" args="(OCI_Thread *thread)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_ThreadFree </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___thread.html">OCI_Thread</a> * </td> <td class="paramname"> <em>thread</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Destroy a thread object. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>thread</em> </td><td>- Thread handle</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="thread_8c-source.html#l00119">119</a> of file <a class="el" href="thread_8c-source.html">thread.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00165">OCI_Thread::err</a>, <a class="el" href="ocilib__types_8h-source.html#l00163">OCI_Thread::handle</a>, and <a class="el" href="ocilib__types_8h-source.html#l00164">OCI_Thread::id</a>.</p><p>Referenced by <a class="el" href="group__g__threads.html#g1a2474e874215e0b42109ba042de5e3a">OCI_ThreadCreate()</a>.</p></div></div><p><a class="anchor" name="gdfec0263c6b8d508126a806c85898fb9"></a><!-- doxytag: member="ocilib.h::OCI_ThreadJoin" ref="gdfec0263c6b8d508126a806c85898fb9" args="(OCI_Thread *thread)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_ThreadJoin </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___thread.html">OCI_Thread</a> * </td> <td class="paramname"> <em>thread</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Join the given thread. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>thread</em> </td><td>- Thread handle</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>This function waits for the given thread to finish</dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="thread_8c-source.html#l00207">207</a> of file <a class="el" href="thread_8c-source.html">thread.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00165">OCI_Thread::err</a>, and <a class="el" href="ocilib__types_8h-source.html#l00163">OCI_Thread::handle</a>.</p></div></div><p><a class="anchor" name="gf0e4d19a364f990075f2718b80a05bd5"></a><!-- doxytag: member="ocilib.h::OCI_ThreadKeyCreate" ref="gf0e4d19a364f990075f2718b80a05bd5" args="(const mtext *name, POCI_THREADKEYDEST destfunc)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_ThreadKeyCreate </td> <td>(</td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">POCI_THREADKEYDEST </td> <td class="paramname"> <em>destfunc</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Create a thread key object. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>- Thread key name </td></tr> <tr><td valign="top"></td><td valign="top"><em>destfunc</em> </td><td>- Thread key value destructor function</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>Parameter proc is optional. It's called when the thread terminates to allow the program to deal with the thread specific value of the key</dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="threadkey_8c-source.html#l00171">171</a> of file <a class="el" href="threadkey_8c-source.html">threadkey.c</a>.</p><p>References <a class="el" href="group__g__hash.html#g204a572b28898888512653d8148f1b9e">OCI_HashAddPointer()</a>, and <a class="el" href="group__g__hash.html#ga4375677fb934961a73a1f5d0de6eadd">OCI_HashCreate()</a>.</p></div></div><p><a class="anchor" name="g368b5e7ed998dc36f3ab8bdfb32c1c0a"></a><!-- doxytag: member="ocilib.h::OCI_ThreadKeyGetValue" ref="g368b5e7ed998dc36f3ab8bdfb32c1c0a" args="(const mtext *name)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT void* OCI_API OCI_ThreadKeyGetValue </td> <td>(</td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Get a thread key value. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>- Thread key name</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Thread key value on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="threadkey_8c-source.html#l00239">239</a> of file <a class="el" href="threadkey_8c-source.html">threadkey.c</a>.</p><p>References <a class="el" href="group__g__hash.html#g4b5fe71fbbb41265efa5645e4dd5838a">OCI_HashGetPointer()</a>.</p></div></div><p><a class="anchor" name="g50e666be8c5d062a80d81969bbd1fc67"></a><!-- doxytag: member="ocilib.h::OCI_ThreadKeySetValue" ref="g50e666be8c5d062a80d81969bbd1fc67" args="(const mtext *name, void *value)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_ThreadKeySetValue </td> <td>(</td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Set a thread key value. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>- Thread key name </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>- user value to set</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="threadkey_8c-source.html#l00219">219</a> of file <a class="el" href="threadkey_8c-source.html">threadkey.c</a>.</p><p>References <a class="el" href="group__g__hash.html#g4b5fe71fbbb41265efa5645e4dd5838a">OCI_HashGetPointer()</a>.</p></div></div><p><a class="anchor" name="g1076c9942cc395f298ca350021031bfd"></a><!-- doxytag: member="ocilib.h::OCI_ThreadRun" ref="g1076c9942cc395f298ca350021031bfd" args="(OCI_Thread *thread, POCI_THREAD proc, void *arg)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_ThreadRun </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___thread.html">OCI_Thread</a> * </td> <td class="paramname"> <em>thread</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">POCI_THREAD </td> <td class="paramname"> <em>proc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> <em>arg</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Execute the given routine within the given thread object. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>thread</em> </td><td>- Thread handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>proc</em> </td><td>- routine to execute </td></tr> <tr><td valign="top"></td><td valign="top"><em>arg</em> </td><td>- parameter to pass to the routine</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="thread_8c-source.html#l00178">178</a> of file <a class="el" href="thread_8c-source.html">thread.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00166">OCI_Thread::arg</a>, <a class="el" href="ocilib__types_8h-source.html#l00165">OCI_Thread::err</a>, <a class="el" href="ocilib__types_8h-source.html#l00163">OCI_Thread::handle</a>, <a class="el" href="ocilib__types_8h-source.html#l00164">OCI_Thread::id</a>, and <a class="el" href="ocilib__types_8h-source.html#l00167">OCI_Thread::proc</a>.</p></div></div><p><hr size="1"><address style="text-align: right;"><small>Generated on Sat Apr 18 01:13:15 2009 for OCILIB (C Driver for Oracle) by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -