diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-27 18:14:04 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-27 18:14:04 +0000 |
commit | 6c13de310492e31ede379bb04df1c62cbdb4b09f (patch) | |
tree | e97ae496cdcdecfec591b74ea60dde5ceb33d32a /docs/tutorials/012/task.h | |
parent | b5e068afb139dc7c6b9cf90c53571a4333105c95 (diff) | |
download | ATCD-pre_dynamic_any.tar.gz |
This commit was manufactured by cvs2svn to create tagpre_dynamic_any
'pre_dynamic_any'.
Diffstat (limited to 'docs/tutorials/012/task.h')
-rw-r--r-- | docs/tutorials/012/task.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/docs/tutorials/012/task.h b/docs/tutorials/012/task.h deleted file mode 100644 index afeed1bbf1d..00000000000 --- a/docs/tutorials/012/task.h +++ /dev/null @@ -1,47 +0,0 @@ - -// $Id$ - -#ifndef TASK_H -#define TASK_H - -#include "ace/Task.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -/* - This is our basic thread-pool Task. We have a choice of pool size - on the open() and the usual svc() and close() methods. - - A new addition is the ACE_Barrier object. This will allow the - synchronization of our svc() methods so that they all start at the - "same" time. The normal case may allow one thread to start working - earlier than others. There's no real harm in it but you can get - better "work by thread" statistics if they start out together. -*/ -class Task : public ACE_Task < ACE_MT_SYNCH > -{ -public: - - typedef ACE_Task < ACE_MT_SYNCH > inherited; - - Task (void); - ~Task (void); - - /* - I really wanted this to be called open() but that was already - claimed by the Task framework. start() will kick off our thread - pool for us. - */ - int start (int threads = 1); - - virtual int svc (void); - - virtual int close (u_long flags = 0); - -protected: - ACE_Barrier * barrier_; -}; - -#endif |