Closed marzocchi closed 1 year ago
there are some data races that can be spotted by running _example/example with -race, especially after changing the sleep interval to <1s.
_example/example
-race
to note: the data race in Characteristic's updateValue/getValue probably needs a better solution, maybe some refactoring, than just using locks:
Characteristic
updateValue
getValue
SetValue
GetValue
OnValueRemoteUpdate
Value
there are some data races that can be spotted by running
_example/example
with-race
, especially after changing the sleep interval to <1s.to note: the data race in
Characteristic
'supdateValue
/getValue
probably needs a better solution, maybe some refactoring, than just using locks:SetValue
orGetValue
insideOnValueRemoteUpdate
now locks forever (but i'm not sure if it actually makes sense to do so in the first place)Value
field directly