📄 a00008.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: lc-switch.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 Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>lc-switch.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>Implementation of local continuations based on switch() statment. <p><dl compact><dt><b>Author:</b></dt><dd>Adam Dunkels <<a href="mailto:adam@sics.se">adam@sics.se</a>></dd></dl>This implementation of local continuations uses the C switch() statement to resume execution of a function somewhere inside the function's body. The implementation is based on the fact that switch() statements are able to jump directly into the bodies of control structures such as if() or while() statmenets.<p>This implementation borrows heavily from Simon Tatham's coroutines implementation in C:<p><a href="http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html">http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html</a><p><p>This graph shows which files directly or indirectly include this file:<p><center><img src="a00024.png" border="0" usemap="#lc-switch.hdep_map" alt="Included by dependency graph"></center><map name="lc-switch.hdep_map"><area href="a00009.html" shape="rect" coords="22,167,60,193" alt=""><area href="a00011.html" shape="rect" coords="22,92,60,119" alt=""><area href="a00010.html" shape="rect" coords="12,17,70,44" alt=""></map><p><a href="a00016.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>Typedefs</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="ga0" doxytag="lc-switch.h::lc_t" ></a>typedef unsigned short </td><td class="memItemRight" valign=bottom><a class="el" href="a00014.html#ga0">lc_t</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">The local continuation type. <br><br></td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Feb 24 11:39:16 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 + -