📄 group__osip__thread.html
字号:
<!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>libosip: oSIP Thread Routines</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.8 --><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">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div><h1>oSIP Thread Routines<br><small>[<a class="el" href="group__osip2__port.html">The OS port modules</a>]</small></h1><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Classes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structosip__thread.html">osip_thread</a></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="structosip__thread.html">osip_thread</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__THREAD.html#ga0">osip_thread_create</a> (int stacksize, void *(*func)(void *), void *arg)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__THREAD.html#ga1">osip_thread_join</a> (struct <a class="el" href="structosip__thread.html">osip_thread</a> *thread)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__THREAD.html#ga2">osip_thread_set_priority</a> (struct <a class="el" href="structosip__thread.html">osip_thread</a> *thread, int priority)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__THREAD.html#ga3">osip_thread_exit</a> (void)</td></tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga0" doxytag="osip_mt.h::osip_thread_create" ></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"> struct <a class="el" href="structosip__thread.html">osip_thread</a>* osip_thread_create </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>stacksize</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>void *(* </td> <td class="mdname" nowrap> <em>func</em>)(void *), </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>arg</em></td> </tr> <tr> <td></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>Allocate (or initialise if a thread address is given) <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>stacksize</em> </td><td>The stack size of the thread. (20000 is a good value) </td></tr> <tr><td></td><td valign=top><em>func</em> </td><td>The method where the thread start. </td></tr> <tr><td></td><td valign=top><em>arg</em> </td><td>A pointer on the argument given to the method 'func'. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga3" doxytag="osip_mt.h::osip_thread_exit" ></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"> void osip_thread_exit </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>Exit from a thread. </td> </tr></table><a class="anchor" name="ga1" doxytag="osip_mt.h::osip_thread_join" ></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 osip_thread_join </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">struct <a class="el" href="structosip__thread.html">osip_thread</a> * </td> <td class="mdname1" valign="top" nowrap> <em>thread</em> </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>Join a thread. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>thread</em> </td><td>The thread to join. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga2" doxytag="osip_mt.h::osip_thread_set_priority" ></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 osip_thread_set_priority </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">struct <a class="el" href="structosip__thread.html">osip_thread</a> * </td> <td class="mdname" nowrap> <em>thread</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>priority</em></td> </tr> <tr> <td></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>Set the priority of a thread. (NOT IMPLEMENTED ON ALL SYSTEMS) <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>thread</em> </td><td>The thread to work on. </td></tr> <tr><td></td><td valign=top><em>priority</em> </td><td>The priority value to set. </td></tr> </table></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Tue Sep 7 15:07:58 2004 for libosip by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -