blob: 2b05e754463182b1e72f0a25bda439bb00912644 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// -*- C++ -*-
// =========================================================================
/**
* @file MT_AMH_Server.h
*
* $Id$
*
* @desc Provides Multi-threaded functionality to the Base_Server.
*
* @author Mayur Deshpande <mayur@ics.uci.edu>
*
*/
// =========================================================================
#ifndef MT_AMH_SERVER_H
#define MT_AMH_SERVER_H
#include "Base_Server.h"
#include "ace/Task.h"
class MT_AMH_Server
: public Base_Server
, public ACE_Task_Base
{
public:
MT_AMH_Server (int &argc, ACE_TCHAR **argv);
~MT_AMH_Server (void);
// print usage text
void usage (const char *message);
// We need to parse an extra thread_count parameter for
// multi-threraded server.
int parse_args (void);
void start_threads (void);
// the service method
int svc (void);
private:
int nthreads_;
};
#endif // MT_AMH_Server_H
|