forked from qt-creator/qt-creator
SubChannelProvider: Pass PortsGatherer
I've cut a bit too much in the previous commit. Bring back
passing ports gatherer into SubChannelProvider.
Amends 302268c4d4
Change-Id: I5bf79300c7930348495757e3f9e4ab164512860e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -183,8 +183,9 @@ namespace Internal {
|
||||
class SubChannelProvider : public RunWorker
|
||||
{
|
||||
public:
|
||||
SubChannelProvider(RunControl *runControl)
|
||||
SubChannelProvider(RunControl *runControl, PortsGatherer *portsGatherer)
|
||||
: RunWorker(runControl)
|
||||
, m_portGatherer(portsGatherer)
|
||||
{
|
||||
setId("SubChannelProvider");
|
||||
}
|
||||
@@ -243,9 +244,10 @@ ChannelProvider::ChannelProvider(RunControl *runControl, int requiredChannels)
|
||||
: RunWorker(runControl)
|
||||
{
|
||||
setId("ChannelProvider");
|
||||
auto portsGatherer = new PortsGatherer(runControl);
|
||||
|
||||
for (int i = 0; i < requiredChannels; ++i) {
|
||||
auto channelProvider = new Internal::SubChannelProvider(runControl);
|
||||
auto channelProvider = new Internal::SubChannelProvider(runControl, portsGatherer);
|
||||
m_channelProviders.append(channelProvider);
|
||||
addStartDependency(channelProvider);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user