Get all the threading working properly so teh dispatcher functions correctly now.

This commit is contained in:
Ken Moore
2016-02-02 13:00:49 -05:00
parent be12e18983
commit 470000b08b
3 changed files with 59 additions and 22 deletions

View File

@@ -89,10 +89,11 @@ int main( int argc, char ** argv )
//Start the daemon
int ret = 1; //error return value
if( w->startServer(port, websocket) ){
QThread TBACK;
QThread TBACK, TBACK2;
EVENTS->moveToThread(&TBACK);
DISPATCHER->moveToThread(&TBACK);
DISPATCHER->moveToThread(&TBACK2);
TBACK.start();
TBACK2.start();
QTimer::singleShot(0,EVENTS, SLOT(start()) );
//Now start the main event loop
ret = a.exec();