Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/cml/doc/HTML/porting.html
ViewVC logotype

Annotation of /sml/trunk/src/cml/doc/HTML/porting.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 107 - (view) (download) (as text)

1 : monnier 8 <!-- HTML/porting.html -->
2 : monnier 2
3 : monnier 106 <!-- COPYRIGHT (c) 1998 Bell Labs, Lucent Technologies. -->
4 : monnier 2 <!-- COPYRIGHT (c) 1995 AT\|@AMP\|T Bell Laboratories. -->
5 :    
6 :     <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
7 :     <HTML>
8 :     <HEAD>
9 :     <TITLE>Porting old programs</TITLE>
10 :     </HEAD>
11 : monnier 106 <BODY><A NAME="top"></A>
12 : monnier 8 <H1 align=CENTER>The Concurrent ML Reference Manual</H1>
13 : monnier 2 <HR>
14 :    
15 : monnier 8
16 : monnier 106 <H2><A NAME="section:0">Porting old CML programs</A></H2>
17 : monnier 2 <P>
18 :     There have been substantial changes from version&nbsp;0.9.8 of CML. Most of these changes are cosmetic name changes meant to track changes in the SML interfaces, and to rationalize naming conventions. In this section, we detail the changes to the CML interfaces, and describe correspondence between the old and new interfaces.
19 : monnier 106 <H3><A NAME="section:1">Backwards compatibility modules</A></H3>
20 : monnier 2 <P>
21 : monnier 106 To ease the transition from version&nbsp;0.9.8 of CML to the new interfaces, we provide two backwards compatibility modules in the CML Library.
22 :     <H3><A NAME="section:2">Name changes</A></H3>
23 : monnier 2 <HR>
24 :     <CENTER>
25 :     <TABLE ALIGN=CENTER>
26 :     <TR>
27 :     <TH ALIGN=CENTER VALIGN=TOP>
28 :     Old name
29 :     <TH ALIGN=CENTER VALIGN=TOP>
30 :     New name
31 :     <TR>
32 :     <TD ALIGN=LEFT VALIGN=TOP>
33 :     <CODE>accept</CODE>
34 :     <TD ALIGN=LEFT VALIGN=TOP>
35 :     <A HREF="cml.html#SIG:CML.recv:VAL:SPEC">recv</A>
36 :     <TR>
37 :     <TD ALIGN=LEFT VALIGN=TOP>
38 :     <CODE>receive</CODE>
39 :     <TD ALIGN=LEFT VALIGN=TOP>
40 :     <A HREF="cml.html#SIG:CML.recvEvt:VAL:SPEC">recvEvt</A>
41 :     <TR>
42 :     <TD ALIGN=LEFT VALIGN=TOP>
43 :     <CODE>transmit</CODE>
44 :     <TD ALIGN=LEFT VALIGN=TOP>
45 :     <A HREF="cml.html#SIG:CML.sendEvt:VAL:SPEC">sendEvt</A>
46 :     <TR>
47 :     <TD ALIGN=LEFT VALIGN=TOP>
48 :     <CODE>timout</CODE>
49 :     <TD ALIGN=LEFT VALIGN=TOP>
50 :     <A HREF="cml.html#SIG:CML.timeOutEvt:VAL:SPEC">timeOutEvt</A>
51 :     <TR>
52 :     <TD ALIGN=LEFT VALIGN=TOP>
53 :     <CODE>waitUntil</CODE>
54 :     <TD ALIGN=LEFT VALIGN=TOP>
55 :     <A HREF="cml.html#SIG:CML.atTimeEvt:VAL:SPEC">atTimeEvt</A>
56 :     <TR>
57 :     <TD ALIGN=LEFT VALIGN=TOP>
58 :     <CODE>threadWait</CODE>
59 :     <TD ALIGN=LEFT VALIGN=TOP>
60 :     <A HREF="cml.html#SIG:CML.joinEvt:VAL:SPEC">joinEvt</A>
61 :     <TR>
62 :     <TD ALIGN=LEFT VALIGN=TOP>
63 :     <CODE>sameThread</CODE>
64 :     <TD ALIGN=LEFT VALIGN=TOP>
65 :     <A HREF="cml.html#SIG:CML.sameTid:VAL:SPEC">sameTid</A>
66 :     </TABLE>
67 :     </CENTER>
68 :     <HR>
69 : monnier 106 <H3><A NAME="section:3">Input/output</A></H3>
70 : monnier 2 <P>
71 : monnier 106 The most significant changes to the CML interfaces have to do with input/output operations. In version&nbsp;0.9.8, the structure <CODE>CIO</CODE> provided an implementation of the SML/NJ <CODE>IO</CODE> signature extended with event-valued operations. The old SML I/O interface has been replaced with a new interface, which is described in the SML Basis Library Manual, and CML has followed suite.
72 :     <H3><A NAME="section:4">Condition variables</A></H3>
73 :     <H3><A NAME="section:5">Polling</A></H3>
74 : monnier 2 <P>
75 :     The only loss in function from version&nbsp;0.9.8 is the elimination of the <CODE>poll</CODE> operation, which provided a non-blocking form of <A HREF="cml.html#SIG:CML.sync:VAL:SPEC">sync</A>. Instead of this operation, CML now provides non-blocking input operations on many of the basic communication types.
76 : monnier 8
77 :    
78 : monnier 2 <HR>
79 : monnier 8 <CENTER>
80 : monnier 106 <B>[ <A HREF="#top">Top</A>
81 :     | <A HREF="basics.html">Parent</A>
82 :     | <A HREF="toc.html">Contents</A>
83 :     | <A HREF="index-all.html">Index</A>
84 :     | <A HREF="refman.html">Root</A>
85 : monnier 2 ]</B>
86 : monnier 8 </CENTER>
87 : monnier 2 <P>
88 : monnier 106 <I>Last Modified &date;</I><BR>
89 : monnier 8 <I>Comments to <A HREF="mailto:jhr@research.bell-labs.com">John Reppy.</A></I><BR>
90 :    
91 : monnier 106 Copyright &copy; 1998 Bell Labs, Lucent Technologies <BR>
92 : monnier 8
93 : monnier 2 <HR>
94 : monnier 106 </BODY></HTML>

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0