blob: a799f9320161ef43d05ef19974fe9223f8c66a27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="James CE Johnson">
<TITLE>ACE Tutorial 012</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#000FFF" VLINK="#FF0F0F">
<CENTER><B><FONT SIZE=+2>ACE Tutorial 012</FONT></B></CENTER>
<CENTER><B><FONT SIZE=+2>Passing classes through ACE_Message_Queue</FONT></B></CENTER>
<P>
<HR WIDTH="100%">
<P>
Last time around we put an object into a message queue by using the
copy() method to create a duplicate of the object. That's probably OK
for simple objects that aren't very large. However, if you have an
object that contains pointers or tons of data then that approach is
going to cause problems.
<P>
What we'll do in this tutorial is specialize the ACE_Message_Block
object so that it can carry our data more efficiently. As you'll see,
this isn't very difficult at all.
<P>
<HR WIDTH="100%">
<CENTER>[<A HREF="..">Tutorial Index</A>] [<A HREF="page02.html">Continue
This Tutorial</A>]</CENTER>
</BODY>
</HTML>
|