C++ (Qt) while( 1 ) { // block for 50ms on all sockets - if you intend to perform any timed actions more frequently you should change this // that said it's likely we'll loop more often than this due to there being data waiting on one of the sockets but there aren't any guarantees if( gGHost->Update( 50000 ) ) break; }
C++ (Qt)solver = new ProblemSolver();thread = new QThread(this);solver->moveToThread(thread);thread->start();solver->startSolving();