OverSim
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
XmlRpcThreadedServer.h
Go to the documentation of this file.
1
2
#ifndef _XMLRPCTHREADEDSERVER_H_
3
#define _XMLRPCTHREADEDSERVER_H_
4
//
5
// XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
6
//
7
13
#if defined(_MSC_VER)
14
# pragma warning(disable:4786) // identifier was truncated in debug info
15
#endif
16
17
#ifndef MAKEDEPEND
18
# include <map>
19
# include <vector>
20
#endif
21
22
23
#include "
XmlRpcMutex.h
"
24
#include "
XmlRpcServer.h
"
25
#include "
XmlRpcThread.h
"
26
27
28
namespace
XmlRpc {
29
31
class
XmlRpcThreadedServer
:
public
XmlRpcServer
{
32
public
:
33
35
XmlRpcThreadedServer
(
int
nWorkers = 6) :
_workers
(nWorkers) {}
36
37
39
40
protected
:
41
45
class
Worker
:
XmlRpcRunnable
{
46
public
:
48
Worker
() {
_thread
.
setRunnable
(
this
);
_thread
.
start
(); }
49
51
void
run
();
52
53
protected
:
54
56
XmlRpcThread
_thread
;
57
58
};
59
60
62
std::vector<Worker>
_workers
;
63
64
66
XmlRpcMutex
_mutex
;
67
68
69
};
// class XmlRpcThreadedServer
70
71
}
72
73
#endif // _XMLRPCTHREADEDSERVER_H_
src
tier3
xmlrpcinterface
xmlrpc++
XmlRpcThreadedServer.h
Generated on Fri Dec 7 2012 13:37:53 for OverSim by
1.8.1.2