📄 streams.doc15.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="../../wrs.css"><title>Porting STREAMS Protocols to WindNet STREAMS WindNet STREAMS for Tornado </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="../../icons/contents.gif"></a><a href="streams.doc14.html"><img border="0" alt="[Prev]" src="../../icons/prev.gif"></a><a href="streams.doc16.html"><img border="0" alt="[Next]" src="../../icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="72080" class="autotag">4.3 WindNet STREAMS UNIX-Compatible Routines.</a></i></h3></font><dl class="margin"><dd><dl class="margin"><dd><p class="Body"><a name="72081" class="autotag"> </a><a href="streams.doc15.html#74556"><i class="title">Table 6</i></a> introduces the UNIX-compatible routines supported by WindNet STREAMS.<p class="table"><h4 class="EntityTitle"><a name="74556" class="autotag"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 6. UNIX-Compatible Routines</font></a></h4><table border="0" cellpadding="3" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="74560" class="autotag"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">WindNet STREAMS Routine</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="74598" class="autotag"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">UNIX Routine</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeadingC" align="center"><a name="74562" class="autotag"> </a><b><font face="Helvetica, sans-serif" size="-1" class="sans">Description</font></b></div></th></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"></th><th rowspan="1" colspan="1"></th><th rowspan="1" colspan="1"></th></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="74568" class="autotag"> </a><b class="routine"><i class="routine">strmTimeout</i></b><b>( )</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="74602" class="autotag"> </a><b class="keyword">timeout</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="74570" class="autotag"> </a>Schedules the execution of a routine after a specified length of time.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="74572" class="autotag"> </a><b class="routine"><i class="routine">strmUntimeout</i></b><b>( )</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="74604" class="autotag"> </a><b class="keyword">untimeout</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="74574" class="autotag"> </a>Cancels a previously-scheduled timeout.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="74576" class="autotag"> </a><b class="routine"><i class="routine">strmSleep</i></b><b>( )</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="74606" class="autotag"> </a><b class="keyword">sleep</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="74578" class="autotag"> </a>Suspends thread execution pending the occurrence of a specified event.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="74580" class="autotag"> </a><b class="routine"><i class="routine">strmWakeup</i></b><b>( )</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="74608" class="autotag"> </a><b class="keyword">wakeup</b></div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="74582" class="autotag"> </a>Resume thread execution.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1></td><td colspan=1 rowspan=1></td><td colspan=1 rowspan=1></td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p></dd></dl><dl class="margin"><dd><div class="Item"><a name="72082" class="autotag"> </a><b class="routine"><i class="routine">strmTimeout</i></b><b>( )</b></div><dl class="margin"><dd><div class="Indent"><a name="95341" class="autotag"> </a>provides the same functionality, invocation parameters, and return value as the UNIX routine <b class="keyword">timeout</b>.</div><br></dd></dl><div class="Item"><a name="94688" class="autotag"> </a><b class="routine"><i class="routine">strmUntimeout</i></b><b>( )</b></div><dl class="margin"><dd><div class="Indent"><a name="95343" class="autotag"> </a>provides the same functionality, invocation parameters, and return value as the UNIX routine <b class="keyword">untimeout</b>.</div><br></dd></dl><div class="Item"><a name="72084" class="autotag"> </a><b class="routine"><i class="routine">strmSleep</i></b><b>( )</b></div><dl class="margin"><dd><div class="Indent"><a name="95345" class="autotag"> </a>provides the same functionality and return value, but takes only the event parameter, unlike its UNIX counterpart <b class="keyword">sleep</b>.</div><br></dd></dl><div class="Item"><a name="72085" class="autotag"> </a><b class="routine"><i class="routine">strmWakeup</i></b><b>( )</b></div><div class="Item"><a name="95347" class="autotag"> </a>provides the same functionality, invocation parameters, and return value as the UNIX routine <b class="keyword">wakeup</b>.</div></dd></dl><dl class="margin"><dd><p class="Body"><a name="75471" class="autotag"> </a>For more information, see the manual entries for <b class="routine"><i class="routine">strmTimeout</i></b><b>( )</b>, <b class="routine"><i class="routine">strmUntimeout</i></b><b>( )</b>, <b class="routine"><i class="routine">strmSleep</i></b><b>( )</b>, and <b class="routine"><i class="routine">strmWakeup</i></b><b>( )</b>.</p></dd></dl></dd></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="../../icons/contents.gif"></a><a href="streams.doc14.html"><img border="0" alt="[Prev]" src="../../icons/prev.gif"></a><a href="streams.doc16.html"><img border="0" alt="[Next]" src="../../icons/next.gif"></a></p></body></html><!---This file generated April 10, 1998, 12:25PM PDTby WRS Documentation (jeff), Wind River Systems, Inc. conversion tool: Quadralay WebWorks Publisher 3.5.0 template: CSS Template, Jan 1998 - Jefro --->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -