diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-30 19:34:27 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-30 19:34:27 +0000 |
commit | 03154c9a5b9e8628d31bd9032549327d51304645 (patch) | |
tree | f4f85e04edaef6ed998a7953275ad3dcf1911fef /docs/tutorials/010/task.h | |
parent | 73efbc1d2ad02533d865e1b14008ffc8d8bc82fb (diff) | |
download | ATCD-pre_multiple_profile_server.tar.gz |
This commit was manufactured by cvs2svn to create tagpre_multiple_profile_server
'pre_multiple_profile_server'.
Diffstat (limited to 'docs/tutorials/010/task.h')
-rw-r--r-- | docs/tutorials/010/task.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/docs/tutorials/010/task.h b/docs/tutorials/010/task.h deleted file mode 100644 index 4e0b974a60d..00000000000 --- a/docs/tutorials/010/task.h +++ /dev/null @@ -1,45 +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 */ - -/* Like the thread-pool server tutorial, we'll derive from ACE_Task<>. - Our goal here is to show off the ACE_Message_Queue and the best way - to do that is to use one to pass data between threads. The easiest - way to create threads is with ACE_Task<> */ -class Task : public ACE_Task <ACE_MT_SYNCH> -{ -public: - - typedef ACE_Task <ACE_MT_SYNCH> inherited; - - /* The constructor/destructor are simple but take care of some - necessary housekeeping. */ - Task (size_t n_threads); - ~Task (void); - - /* open() will kick off our thread pool for us. */ - int open (void * = 0); - - /* Our worker method */ - int svc (void); - - /* All we'll do here is print a message to the user. */ - int close (u_long flags = 0); - -protected: - /* Just to be clever, I'll use an ACE_Barrier to cause the threads - to sync in svc() before doing any real work. */ - ACE_Barrier barrier_; - - size_t n_threads_; - // Number of threads in the pool. -}; - -#endif /* TASK_H */ |