⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a00011.html

📁 Protothreads are extremely lightweight stackless threads designed for severely memory constrained s
💻 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>The Protothreads Library 1.0: pt.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.6 --><div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>pt.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>Protothreads implementation. <p><dl compact><dt><b>Author:</b></dt><dd>Adam Dunkels &lt;<a href="mailto:adam@sics.se">adam@sics.se</a>&gt;</dd></dl><p><code>#include "<a class="el" href="a00017.html">lc.h</a>"</code><br><p>This graph shows which files directly or indirectly include this file:<p><center><img src="a00026.png" border="0" usemap="#pt.hdep_map" alt="Included by dependency graph"></center><map name="pt.hdep_map"><area href="a00010.html" shape="rect" coords="7,17,65,44" alt=""></map><p><a href="a00019.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga2">PT_THREAD</a>(name_args)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Declaration of a protothread.  <a href="a00012.html#ga2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga3">PT_INIT</a>(pt)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize a protothread.  <a href="a00012.html#ga3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga4">PT_BEGIN</a>(pt)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Declare the start of a protothread inside the C function implementing the protothread.  <a href="a00012.html#ga4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga5">PT_WAIT_UNTIL</a>(pt, condition)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Block and wait until condition is true.  <a href="a00012.html#ga5"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga6">PT_WAIT_WHILE</a>(pt, cond)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Block and wait while condition is true.  <a href="a00012.html#ga6"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga7">PT_WAIT_THREAD</a>(pt, thread)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Block and wait until a child protothread completes.  <a href="a00012.html#ga7"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga8">PT_SPAWN</a>(pt, thread)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Spawn a child protothread and wait until it exits.  <a href="a00012.html#ga8"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga9">PT_RESTART</a>(pt)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Restart the protothread.  <a href="a00012.html#ga9"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga10">PT_EXIT</a>(pt)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exit the protothread.  <a href="a00012.html#ga10"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga11">PT_END</a>(pt)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Declare the end of a protothread.  <a href="a00012.html#ga11"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a00012.html#ga12">PT_SCHEDULE</a>(f)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Schedule a protothread.  <a href="a00012.html#ga12"></a><br><br></td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Feb 24 11:39:17 2005 for The Protothreads Library 1.0 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.6 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -