mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
[FS9] Stop using Fs9Host and Fs9Client as CContinuousWorkers
Both were continuous workers since a blocking IDirectPlay8Peer::SendTo() method was used. Since we use the default async method now, we don't need the threaded implementation any longer. It still could happen that GUI blocks for too long, but that would happen also for other simulator drivers. ref T433
This commit is contained in:
committed by
Mat Sutcliffe
parent
949e013f0b
commit
d6d2c0cc80
@@ -27,7 +27,16 @@ namespace BlackSimPlugin
|
||||
{
|
||||
CFs9Host::CFs9Host(QObject *owner) :
|
||||
CDirectPlayPeer(owner, sApp->swiftVersionString())
|
||||
{}
|
||||
{
|
||||
initDirectPlay();
|
||||
createHostAddress();
|
||||
startHosting(sApp->swiftVersionString(), m_callsign.toQString());
|
||||
}
|
||||
|
||||
CFs9Host::~CFs9Host()
|
||||
{
|
||||
stopHosting();
|
||||
}
|
||||
|
||||
QString CFs9Host::getHostAddress()
|
||||
{
|
||||
@@ -73,18 +82,6 @@ namespace BlackSimPlugin
|
||||
sendMessage(message);
|
||||
}
|
||||
|
||||
void CFs9Host::initialize()
|
||||
{
|
||||
initDirectPlay();
|
||||
createHostAddress();
|
||||
startHosting(sApp->swiftVersionString(), m_callsign.toQString());
|
||||
}
|
||||
|
||||
void CFs9Host::cleanup()
|
||||
{
|
||||
stopHosting();
|
||||
}
|
||||
|
||||
HRESULT CFs9Host::startHosting(const QString &session, const QString &callsign)
|
||||
{
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
Reference in New Issue
Block a user