MT#63171 XMLRPC2DI: proper shutdown

Use AmEventQueueThreaded to facilitate thread shutdown

Change-Id: I498595fd1ac95d8862cec2eec2047fc04dea055a
mr13.5
Richard Fuchs 1 year ago
parent c85a2a593c
commit c247242bf4

@ -329,7 +329,7 @@ XMLRPC2DIServer::XMLRPC2DIServer(unsigned int port,
string &direct_export,
bool multithreaded,
unsigned int threads)
: AmEventQueue(this),
: AmEventQueueThread(this),
port(port),
bind_ip(bind_ip),
running(false),

@ -96,8 +96,7 @@ struct DIMethodProxy : public XmlRpcServerMethod
};
class XMLRPC2DIServer
: public AmEventQueue,
public AmThread,
: public AmEventQueueThread,
public AmEventHandler
{
XmlRpcServer* s;
@ -135,6 +134,8 @@ class XMLRPC2DIServer
unsigned int threads = 5);
~XMLRPC2DIServer() {
stop();
join();
if (s) {
delete s;
}

Loading…
Cancel
Save