Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / AMH / Sink_Server / MT_AMH_Server.h
blob098cc85203958d5087f9b0e48261bdc9da0612a1
1 // -*- C++ -*-
3 // =========================================================================
4 /**
5 * @file MT_AMH_Server.h
7 * @desc Provides Multi-threaded functionality to the Base_Server.
9 * @author Mayur Deshpande <mayur@ics.uci.edu>
11 // =========================================================================
14 #ifndef MT_AMH_SERVER_H
15 #define MT_AMH_SERVER_H
18 #include "Base_Server.h"
19 #include "ace/Task.h"
21 class MT_AMH_Server
22 : public Base_Server
23 , public ACE_Task_Base
25 public:
26 MT_AMH_Server (int &argc, ACE_TCHAR **argv);
28 ~MT_AMH_Server (void);
30 // print usage text
31 void usage (const char *message);
33 // We need to parse an extra thread_count parameter for
34 // multi-threraded server.
35 int parse_args (void);
37 void start_threads (void);
39 // the service method
40 int svc (void);
42 private:
43 int nthreads_;
46 #endif // MT_AMH_Server_H