Enable QtConcurrent for the message reply generation systems.

This commit is contained in:
Ken Moore
2016-01-19 12:33:00 -05:00
parent f948edc354
commit ee7a5a9d43
2 changed files with 4 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
// =================================
#include "WebSocket.h"
#include <QtConcurrent>
#include <unistd.h>
#define DEBUG 0
@@ -109,7 +110,8 @@ void WebSocket::EvaluateREST(QString msg){
out.Header << "Content-Type: text/json; charset=utf-8";
this->sendReply(out.assembleMessage());
}else{
EvaluateRequest(IN);
//EvaluateRequest(IN);
QtConcurrent::run(this, &WebSocket::EvaluateRequest, IN);
}
}

View File

@@ -2,7 +2,7 @@ TEMPLATE = app
LANGUAGE = C++
CONFIG += qt warn_on release
QT = core network websockets
QT = core network websockets concurrent
HEADERS += globals.h globals-qt.h \
WebServer.h \