summaryrefslogtreecommitdiff
path: root/docs/tutorials/014/EndTask.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /docs/tutorials/014/EndTask.h
parent2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff)
downloadATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'docs/tutorials/014/EndTask.h')
-rw-r--r--docs/tutorials/014/EndTask.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/tutorials/014/EndTask.h b/docs/tutorials/014/EndTask.h
index e4ab823f1f9..1666c5e8869 100644
--- a/docs/tutorials/014/EndTask.h
+++ b/docs/tutorials/014/EndTask.h
@@ -22,9 +22,9 @@
// your first module, and a Stream_Tail behind your
// last module.
//
-// If your put() a message to the Stream Tail, it
+// If your put() a message to the Stream Tail, it
// assumes you did so in error. This simple EndTask
-// class allows you to push a message to it and just
+// class allows you to push a message to it and just
// have it safely Go Away.
//
// All this Task does is release the Message_Block
@@ -39,33 +39,33 @@ public:
typedef Task inherited;
EndTask(const char *nameOfTask) :
- inherited(nameOfTask, 0) {
+ inherited(nameOfTask, 0) {
// when we get open()'d, it with 0 threads
// since there is actually no processing to do.
- cerr << __LINE__ << " " << __FILE__ << endl;
+ cerr << __LINE__ << " " << __FILE__ << endl;
};
virtual int open(void *)
{
- cerr << __LINE__ << " " << __FILE__ << endl;
- return 0;
+ cerr << __LINE__ << " " << __FILE__ << endl;
+ return 0;
}
virtual int open(void)
{
- cerr << __LINE__ << " " << __FILE__ << endl;
- return 0;
+ cerr << __LINE__ << " " << __FILE__ << endl;
+ return 0;
}
virtual ~EndTask(void) {
};
virtual int put(ACE_Message_Block *message,
- ACE_Time_Value *timeout) {
+ ACE_Time_Value *timeout) {
- cerr << __LINE__ << " " << __FILE__ << endl;
+ cerr << __LINE__ << " " << __FILE__ << endl;
ACE_UNUSED_ARG(timeout);
// we don't have anything to do, so