Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / examples / AMH / Sink_Server / MT_AMH_Server.h
blob9e80fdea655b1a09bcf8befbaa5e7fe448641ab9
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 ();
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 ();
37 void start_threads ();
39 // the service method
40 int svc ();
42 private:
43 int nthreads_;
46 #endif // MT_AMH_Server_H