Move connection establishment to a separate thread to keep the UI responsive
This commit is contained in:
parent
28ff15c99e
commit
d3949806f5
3 changed files with 81 additions and 79 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue