History

Add thread for AssetClient

Ryan Huffman committed 11 years ago

Commit 4e1b52a1 parent 52584741 file · +11 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+11−0
@@ -428,6 +428,17 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 427 unmodified lines
428428
429429 audioThread->start();
430430
431+
432+ QThread* assetThread = new QThread();
433+
434+ assetThread->setObjectName("Asset Thread");
435+ auto assetClient = DependencyManager::get<AssetClient>();
436+
437+ assetClient->moveToThread(assetThread);
438+
439+ assetThread->start();
440+
441+
431442 const DomainHandler& domainHandler = nodeList->getDomainHandler();
432443
433444 connect(&domainHandler, SIGNAL(hostnameChanged(const QString&)), SLOT(domainChanged(const QString&)));