Move connection establishment to a separate thread to keep the UI responsive

This commit is contained in:
Cameron Gutman committed 2020-08-10 22:21:54 -07:00
1 parent 28ff15c99e
commit d3949806f5
3 files changed
+81 -79

No files matched your search

+5 -2
View File
@@ -16,6 +16,7 @@ class Session : public QObject
friend class SdlInputHandler;
friend class DeferredSessionCleanupTask;
friend class AsyncConnectionStartThread;
public:
explicit Session(NvComputer* computer, NvApp& app, StreamingPreferences *preferences = nullptr);
@@ -56,6 +57,8 @@ signals:
private:
bool initialize();
bool startConnectionAsync();
bool validateLaunch(SDL_Window* testWindow);
void emitLaunchWarning(QString text);
@@ -147,8 +150,8 @@ private:
SDL_SpinLock m_InputHandlerLock;
int m_MouseEmulationRefCount;
int m_TerminationErrorCode;
int m_FailedStageId;
bool m_AsyncConnectionSuccess;
int m_PortTestResults;
int m_ActiveVideoFormat;
int m_ActiveVideoWidth;