@@ -140,14 +140,12 @@ void StreamFb::configureScaledAnalogSignal()
140140 analogDataSampleDt = postScaling.getInputSampleType () == SampleType::Int16 ? 16 : 32 ;
141141 analogDataHasInternalPostScaling = false ;
142142
143- setPropertyValueInternal (
144- String (" Scale" ).asPtr <IString>(true ), BaseObjectPtr (analogDataScale).asPtr <IBaseObject>(true ), false , true , false );
145-
146- setPropertyValueInternal (
147- String (" Offset" ).asPtr <IString>(true ), BaseObjectPtr (analogDataOffset).asPtr <IBaseObject>(true ), false , true , false );
148-
149- setPropertyValueInternal (
150- String (" IsClientPostScaling" ).asPtr <IString>(true ), BaseObjectPtr (true ).asPtr <IBaseObject>(true ), false , true , false );
143+ PropertyObjectProtectedPtr objPtrProtected = objPtr.asPtr <IPropertyObjectProtected>(true );
144+ objPtr.beginUpdate ();
145+ objPtrProtected.setProtectedPropertyValue (" Scale" , analogDataScale);
146+ objPtrProtected.setProtectedPropertyValue (" Offset" , analogDataOffset);
147+ objPtrProtected.setProtectedPropertyValue (" IsClientPostScaling" , true );
148+ objPtr.endUpdate ();
151149}
152150
153151void StreamFb::configureMinMaxAnalogSignal ()
@@ -189,20 +187,17 @@ void StreamFb::configureMinMaxAnalogSignal()
189187 analogDataHasInternalPostScaling = true ;
190188 }
191189
192- setPropertyValueInternal (
193- String (" MinValue" ).asPtr <IString>(true ), BaseObjectPtr (analogDataMin).asPtr <IBaseObject>(true ), false , true , false );
194-
195- setPropertyValueInternal (
196- String (" MaxValue" ).asPtr <IString>(true ), BaseObjectPtr (analogDataMax).asPtr <IBaseObject>(true ), false , true , false );
197-
198- setPropertyValueInternal (
199- String (" IsClientPostScaling" ).asPtr <IString>(true ), BaseObjectPtr (false ).asPtr <IBaseObject>(true ), false , true , false );
190+ PropertyObjectProtectedPtr objPtrProtected = objPtr.asPtr <IPropertyObjectProtected>(true );
191+ objPtr.beginUpdate ();
192+ objPtrProtected.setProtectedPropertyValue (" MinValue" , analogDataMin);
193+ objPtrProtected.setProtectedPropertyValue (" MaxValue" , analogDataMax);
194+ objPtrProtected.setProtectedPropertyValue (" IsClientPostScaling" , false );
195+ objPtr.endUpdate ();
200196}
201197
202198void StreamFb::onAnalogSignalConnected ()
203199{
204- setPropertyValueInternal (
205- String (" IsConnectedAnalogSignal" ).asPtr <IString>(true ), BaseObjectPtr (true ).asPtr <IBaseObject>(true ), false , true , false );
200+ objPtr.asPtr <IPropertyObjectProtected>(true ).setProtectedPropertyValue (" IsConnectedAnalogSignal" , true );
206201
207202 constexpr double invertedTickResolution = 1'000'000 ;
208203 int64_t delta = inputDomainDataDescriptor.getRule ().getParameters ().get (" delta" );
@@ -220,8 +215,7 @@ void StreamFb::onAnalogSignalConnected()
220215
221216void StreamFb::onAnalogSignalDisconnected ()
222217{
223- setPropertyValueInternal (
224- String (" IsConnectedAnalogSignal" ).asPtr <IString>(true ), BaseObjectPtr (false ).asPtr <IBaseObject>(true ), false , true , false );
218+ objPtr.asPtr <IPropertyObjectProtected>(true ).setProtectedPropertyValue (" IsConnectedAnalogSignal" , false );
225219}
226220
227221void StreamFb::onDisconnected (const InputPortPtr& inputPort)
@@ -236,7 +230,7 @@ void StreamFb::onDisconnected(const InputPortPtr& inputPort)
236230
237231void StreamFb::onPacketReceived (const InputPortPtr& port)
238232{
239- auto lock = this ->getAcquisitionLock ();
233+ auto lock = this ->getRecursiveConfigLock2 ();
240234
241235 PacketPtr packet;
242236 const auto connection = inputPort.getConnection ();
0 commit comments