Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

But this read lock can be avoided by firstly assigning the new sensor to a temporary variable say "tmp", and then initialized tmp, finally assign temp to the "sensor" variable. By doing this, we can get rid of the read lock. 


Below code and screen shows the code change: 

View file
namecodechange.zip
height250

Image Added


Compatibility, Deprecation, and Migration Plan

...