summaryrefslogtreecommitdiff
path: root/docs/tutorials/014/page02.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorials/014/page02.html')
-rw-r--r--docs/tutorials/014/page02.html91
1 files changed, 0 insertions, 91 deletions
diff --git a/docs/tutorials/014/page02.html b/docs/tutorials/014/page02.html
deleted file mode 100644
index 9dd05c3a0b5..00000000000
--- a/docs/tutorials/014/page02.html
+++ /dev/null
@@ -1,91 +0,0 @@
-<HTML>
-<HEAD>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
- <META NAME="Author" CONTENT="Bob McWhirter">
- <TITLE>ACE Tutorial 014</TITLE>
-</HEAD>
-<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#000FFF" VLINK="#FF0F0F">
-
-<CENTER><B><FONT SIZE=+2>ACE Tutorial 014</FONT></B></CENTER>
-
-<CENTER><B><FONT SIZE=+2>ACE_Stream Tutorial, Of Sorts</FONT></B></CENTER>
-
-<P>
-<HR WIDTH="100%">
-<P>
-You find pretty soon that anytime you work with ACE_Task&lt;&gt; you
- have to create a derivative. The Task.h header simply provides
- that derivative with the overrides we'll need in our application.
-<P>
-<HR WIDTH="100%"><PRE>
-
-// $Id$
-
-// Task.h
-//
-// Tutorial regarding a way to use ACE_Stream.
-//
-// written by bob mcwhirter (bob@netwrench.com)
-//
-//
-
-#ifndef TASK_H
-#define TASK_H
-
-#include &lt;ace/Task.h>
-#include &lt;ace/Synch.h>
-
-// Always typedef when possible.
-
-typedef ACE_Task&lt;ACE_MT_SYNCH> Task_Base;
-
-class Task : public Task_Base
-{
-
-public:
-
- typedef Task_Base inherited;
- // This is just good form.
-
- Task(const char *nameOfTask,
- int numberOfThreads);
- // Initialize our Task with a name,
- // and number of threads to spawn.
-
- virtual ~Task(void);
-
- virtual int open(void *arg);
- // This is provided to prevent compiler complaints
- // about hidden virtual functions.
-
- virtual int close(u_long flags);
- // This closes down the Task and all service threads.
-
- virtual int put(ACE_Message_Block *message,
- ACE_Time_Value *timeout);
- // This is the interface that ACE_Stream uses to
- // communicate with our Task.
-
- virtual int svc(void);
- // This is the actual service loop each of the service
- // threads iterates through.
-
- const char *nameOfTask(void) const;
- // Returns the name of this Task.
-
-private:
-
- int d_numberOfThreads;
- char d_nameOfTask[64];
-
- ACE_Barrier d_barrier;
- // Simple Barrier to make sure all of our service
- // threads have entered their loop before accepting
- // any messages.
-};
-
-
-#endif // TASK_H
-</PRE>
-<P><HR WIDTH="100%">
-<CENTER>[<A HREF="..">Tutorial Index</A>] [<A HREF="page03.html">Continue This Tutorial</A>]</CENTER>