@@ -1644,6 +1644,7 @@ void DataProcessingDevice::doPrepare(ServiceRegistryRef ref)
16441644void DataProcessingDevice::doRun (ServiceRegistryRef ref)
16451645{
16461646 auto & context = ref.get <DataProcessorContext>();
1647+ auto & streamContext = ref.get <StreamContext>();
16471648 O2_SIGNPOST_ID_FROM_POINTER (dpid, device, &context);
16481649 auto & state = ref.get <DeviceState>();
16491650 auto & spec = ref.get <DeviceSpec const >();
@@ -1652,9 +1653,9 @@ void DataProcessingDevice::doRun(ServiceRegistryRef ref)
16521653 return ;
16531654 }
16541655
1655- context .completed .clear ();
1656- context .completed .reserve (16 );
1657- if (DataProcessingDevice::tryDispatchComputation (ref, context .completed )) {
1656+ streamContext .completed .clear ();
1657+ streamContext .completed .reserve (16 );
1658+ if (DataProcessingDevice::tryDispatchComputation (ref, streamContext .completed )) {
16581659 state.lastActiveDataProcessor .store (&context);
16591660 }
16601661 DanglingContext danglingContext{*context.registry };
@@ -1668,8 +1669,8 @@ void DataProcessingDevice::doRun(ServiceRegistryRef ref)
16681669 state.lastActiveDataProcessor = &context;
16691670 }
16701671
1671- context .completed .clear ();
1672- if (DataProcessingDevice::tryDispatchComputation (ref, context .completed )) {
1672+ streamContext .completed .clear ();
1673+ if (DataProcessingDevice::tryDispatchComputation (ref, streamContext .completed )) {
16731674 state.lastActiveDataProcessor = &context;
16741675 }
16751676
@@ -1695,7 +1696,7 @@ void DataProcessingDevice::doRun(ServiceRegistryRef ref)
16951696
16961697 bool shouldProcess = DataProcessingHelpers::hasOnlyGenerated (spec) == false ;
16971698
1698- while (DataProcessingDevice::tryDispatchComputation (ref, context .completed ) && shouldProcess) {
1699+ while (DataProcessingDevice::tryDispatchComputation (ref, streamContext .completed ) && shouldProcess) {
16991700 relayer.processDanglingInputs (context.expirationHandlers , *context.registry , false );
17001701 }
17011702
0 commit comments