diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-09-07 00:09:45 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-09-07 00:09:45 +0000 |
commit | ec38b8c0642802fb388027bf52848649a4d7f55c (patch) | |
tree | 4a678dfb866c2254cc0adac70688c8101c95d11e /docs/tutorials/014/Task.h | |
parent | 58fa009c31d447a6b8313d1cc7d9295fbf0c0b9a (diff) | |
download | ATCD-TAO-1_1_9.tar.gz |
This commit was manufactured by cvs2svn to create tag 'TAO-1_1_9'.TAO-1_1_9
Diffstat (limited to 'docs/tutorials/014/Task.h')
-rw-r--r-- | docs/tutorials/014/Task.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/docs/tutorials/014/Task.h b/docs/tutorials/014/Task.h deleted file mode 100644 index ae02abff1b5..00000000000 --- a/docs/tutorials/014/Task.h +++ /dev/null @@ -1,59 +0,0 @@ -// $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 <ace/Task.h> -#include <ace/Synch.h> - -// Always typedef when possible. - -typedef ACE_Task<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 */ |