simonvetter / modbus

Go modbus stack (client and server)
MIT License
262 stars 83 forks source link

server: use getters with read lock to prevent races (#16) #17

Closed thibaudroy closed 2 years ago

thibaudroy commented 2 years ago

Hi @simonvetter, following #16 here is a proposal that make use of read locks to prevent races

Feel free to ask for adjustments if needed !

simonvetter commented 2 years ago

Going to go ahead and close this as I've essentially pushed the same fix without the getters/setters thing. Many thanks!

See https://github.com/simonvetter/modbus/issues/16 .