1
#if defined(XMLRPC_THREADS)
3
#include "XmlRpcThreadedServer.h"
4
//#include "XmlRpcServerConnection.h"
7
using namespace XmlRpc;
9
// executeRequestThreaded:
10
// remove the serverConnection from the dispatcher (but don't close the socket)
11
// push the request onto the request queue
12
// (acquire the mutex, push_back request, release mutex, incr semaphore)
17
// pop a request off the request queue (block on semaphore/decr, acquire mutex, get request, rel)
18
// executeRequest (parse, run, generate response)
19
// notify the serverConnection that the response is available
20
// (the serverConnection needs to add itself back to the dispatcher safely - mutex)
22
// How do I interrupt the dispatcher if it is waiting in a select call?
23
// i) Replace select with WaitForMultipleObjects, using WSAEventSelect to associate
24
// each socket with an event object, and adding an additional "signal" event.
27
#endif // XMLRPC_THREADS