summaryrefslogtreecommitdiff
path: root/docs/tutorials/011/page01.html
blob: 93a373ad76747607b691d39792dfe01bed6347d5 (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
33
34
35
36
<!-- $Id$ -->
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="Author" CONTENT="James CE Johnson">
   <TITLE>ACE Tutorial 011</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#000FFF" VLINK="#FF0F0F">

<CENTER><B><FONT SIZE=+2>ACE Tutorial 011</FONT></B></CENTER>

<CENTER><B><FONT SIZE=+2>Passing non-trivial data through an ACE_Message_Queue</FONT></B></CENTER>


<P>
<HR WIDTH="100%">
<P>
In the previous tutorial we learned how to put text into a message queue.
While that may be useful, it isn't very exciting or realistic.  In most
cases you'll need to move complex data structures between your threads.
<P>
In this tutorial I'll expand the previous by moving not only a text string
but also a more complex object.  In the next tutorial I'll change things
again so that we move the complex object a bit more efficiently.
<P>
A simple abstract for a simple tutorial:
<UL>
In this tutorial, we put some data into the blocks of the message queue.
We copy the data from a Data object into the block and put it on the
queue. The block is then dequeued by the thread which picks it up and
processes it. This tutorial is very similar to the previous
one with the extra touch being population of the blocks with data.
</UL>
(Abstract by Kirthika, as always.)
<P><HR WIDTH="100%">
<CENTER>[<A HREF="../online-tutorials.html">Tutorial Index</A>] [<A HREF="page02.html">Continue This Tutorial</A>]</CENTER>