~ubuntu-branches/ubuntu/wily/flrig/wily

« back to all changes in this revision

Viewing changes to .pc/0001-License-Declaration.patch/src/xmlrpcpp/XmlRpcThreadedServer.cpp

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2014-10-25 11:17:10 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20141025111710-n32skgya3l9u1brw
Tags: 1.3.17-1
* New upstream release (Closes: #761839)
* Debian Standards-Version: 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#if defined(XMLRPC_THREADS)
2
 
 
3
 
#include "XmlRpcThreadedServer.h"
4
 
//#include "XmlRpcServerConnection.h"
5
 
 
6
 
 
7
 
using namespace XmlRpc;
8
 
 
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)
13
 
//  
14
 
 
15
 
// worker::run
16
 
//  while ! stopped
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)
21
 
 
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.
25
 
//
26
 
 
27
 
#endif // XMLRPC_THREADS