<!-- page01.html,v 1.6 2000/03/19 20:09:25 jcej Exp --> <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>