This commit refactors the FalconCache class to use thread-safe locks when accessing the _arc_config dictionary. Previously, multiple threads could access the dictionary simultaneously, leading to potential race conditions and data corruption.
Add _arc_config_lock dictionary to store locks for each sensor ID
Use with statement to acquire and release lock when accessing _arc_config dictionary
This commit refactors the
FalconCache
class to use thread-safe locks when accessing the_arc_config
dictionary. Previously, multiple threads could access the dictionary simultaneously, leading to potential race conditions and data corruption._arc_config_lock
dictionary to store locks for each sensor IDwith
statement to acquire and release lock when accessing_arc_config
dictionaryFixes #160